Okay - well I've done some digging around and I have got this plugin to work under v6.5 (see updated attachment - ShutdownServer.pm should be version 0.03). Just stick this in your plugins folder, restart slimserver, and go to the plugin web interface to configure the filepath of your favourite OS specific shutdown script (make sure the slimserver user on your system has sufficient permissions to execute the script). The Squeezebox interface provides you with a selection of 'sleep' durations, so there's no need to configure a delay in the OS script itself:
I've included some sample shutdown/sleep scripts for different systems: Script to shutdown a Linux box: #!/bin/sh sudo /sbin/shutdown -h -t secs now Script to make an OS X box go to sleep: #!/bin/bash osascript << EOT tell application "System Events" sleep end EOT Script to shutdown a Windows XP box: SHUTDOWN -s -t 5 The only thing that doesn't work is the ability to cancel the shutdown via the remote. I did have this working under v6.1. I would be eternally grateful, -*pretty please with sugar on*-, if one of the plugin gurus could provide me with some guidance as I have spent several hours gazing at few silly lines (e.g. lines 33-34) of code which is making my head spin! :-( +-------------------------------------------------------------------+ |Filename: ShutdownServer.pm | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=2042| +-------------------------------------------------------------------+ -- kefa Mac OS X 10.4.8, Slimserver 6.5.0, Netgear DG834GT fw V1.02.04 Squeezebox 3 fw 64, Primare SPA20, Monitor Audio GR20 Squeezebox 2 fw 64, Denon UD-M30 SoftSqueeze, Cyrus 3, Monitor Audio R90 ------------------------------------------------------------------------ kefa's Profile: http://forums.slimdevices.com/member.php?userid=421 View this thread: http://forums.slimdevices.com/showthread.php?t=30041 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
