yes, squeezecenter was installed under the newgreg account.

here's my terminal:

OldG4-3:~ newgreg$ sudo ls -l /usr/local/sbin
Password:
total 120
-rw-r--r--@ 1 newgreg  wheel  6148 Jan 29 13:06 .DS_Store
-rw-r--r--  1 newgreg  wheel  3115 Jun 13  2009 OSX SrvrPowerCtrl
Notes.txt
-rwxr-xr-x  1 newgreg  wheel   919 Jun 15  2009 autoblock-disable.sh
-rwxr-xr-x  1 newgreg  wheel  1058 Jun 14  2009 autoblock-enable.sh
-rwxr-xr-x  1 newgreg  wheel   166 Jun 15  2009 spc-clearblock.sh
-rwxr-xr-x  1 root     wheel   460 Feb  5 09:29 spc-hibernate.sh
-rwxr-xr-x  1 root     wheel   460 Feb  1 11:04 spc-hibernate.sh-e
-rwxr-xr-x  1 root     wheel   277 Feb  1 11:01 spc-restart.sh
-rwxr-xr-x  1 newgreg  wheel   153 Jun 15  2009 spc-setblock.sh
-rwxr-xr-x  1 root     wheel   443 Feb  5 09:29 spc-sleep.sh
-rwxr-xr-x  1 root     wheel   443 Feb  5 07:19 spc-sleep.sh-e
-rwxr-xr-x  1 root     wheel   260 Feb  5 09:30 spc-wakeup.sh
-rwxr-xr-x  1 root     wheel   260 Feb  1 11:04 spc-wakeup.sh-e
-rwxr-xr-x  1 newgreg  wheel  2863 Jun 15  2009 srvrpowerctrl-setup.sh

OldG4-3:~ newgreg$ sudo cat /usr/local/sbin/spc-sleep.sh
#!/bin/sh
log_file="/Users/newgreg/Library/Logs/SqueezeCenter/srvrpowerctrl.log"
now_time=`/bin/date`
/bin/echo "At $now_time, $0 is attempting to suspend the system.."
>>$log_file
# hibernatemode 0 == suspend; hibernatemode 1 == hibernation;
hibernatemode 3 == safe sleep, i.e sleep+hibernation
/usr/bin/pmset -a hibernatemode 0 >>$log_file
# Wait 3 seconds to let the setting settle..
/bin/sleep 3
# Sleep the system..
/sbin/shutdown -s now

and yes, if i put sudo /usr/local/sbin/spc-sleep.sh
into the terminal my computer goes to sleep immediately.


-- 
exile
------------------------------------------------------------------------
exile's Profile: http://forums.slimdevices.com/member.php?userid=4579
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to