Skip to content

Instantly share code, notes, and snippets.

@marxjohnson
Created May 7, 2014 18:17
Show Gist options
  • Save marxjohnson/704d4b7fc03831464163 to your computer and use it in GitHub Desktop.
Save marxjohnson/704d4b7fc03831464163 to your computer and use it in GitHub Desktop.
wakeup.sh for XBMC/TvHeadEnd PVR
#!/bin/bash
echo "Executing Wakeup Script" >> /home/xbmc/wakeup.log
echo $1 >> /home/xbmc/wakeup.log
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $1 > /sys/class/rtc/rtc0/wakealarm
cat /sys/class/rtc/rtc0/wakealarm >> /home/xbmc/wakeup.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment