diff options
Diffstat (limited to 'abs/core/LinHES-system/mythwelcome-set-alarm.sh')
-rwxr-xr-x | abs/core/LinHES-system/mythwelcome-set-alarm.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/mythwelcome-set-alarm.sh b/abs/core/LinHES-system/mythwelcome-set-alarm.sh index 7b10372..ebb81ef 100755 --- a/abs/core/LinHES-system/mythwelcome-set-alarm.sh +++ b/abs/core/LinHES-system/mythwelcome-set-alarm.sh @@ -21,3 +21,14 @@ echo 0 > /sys/class/rtc/rtc0/wakealarm #this clears your alarm echo $1 > /sys/class/rtc/rtc0/wakealarm #this writes your alarm cat /proc/driver/rtc > /var/log/wake_alarm + +#allows the user to execute additional commands +userCmds=/home/mythtv/mythwelcome-set-alarm-user.sh +if [[ -f "$userCmds" ]] +then + sh $userCmds $1 +else + echo "#!/bin/sh" > $userCmds + chmod a+x $userCmds + chown mythtv:mythtv $userCmds +fi |