diff options
Diffstat (limited to 'setwakeup.sh')
-rwxr-xr-x | setwakeup.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/setwakeup.sh b/setwakeup.sh new file mode 100755 index 000000000000..4a66b4389016 --- /dev/null +++ b/setwakeup.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +#Sync back system time to hardware time (Maybe VDR has changed it) +hwclock --systohc --utc + +#Unset previous timer +echo '0' > /sys/class/rtc/rtc0/wakealarm + +#Set new timer +echo "$1" > /sys/class/rtc/rtc0/wakealarm + +#Log success to journal +echo "Set wakeup time to timestamp $1" | logger -t kodi-setwakeup |