etc/pm/sleep.d/afile.sh
#!/bin/sh
case "$1" in
suspend|hibernate)
/etc/init.d/tvheadend stop
;;
resume|thaw)
/usr/bin/wakeonlan 00:1d:92:dd:1a:0d
sleep 20
/etc/init.d/tvheadend start
killall -9 xbmc.bin
;;
esac
Why is it that in the above the wakeonlan does not run until AFTER the sleep 20? I want the remote pc to wakeup before xbmc is restarted.
Bookmarks