summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/mythwelcome-set-alarm.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-06-17 04:30:17 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-06-17 04:30:17 (GMT)
commit9368d08f072ae32e7984417deb44472293129754 (patch)
tree4a4ba308d0455dac54d15061e89923286176ec47 /abs/core/LinHES-system/mythwelcome-set-alarm.sh
parent6d01111d04ddeb6208e75d81be3aadf44f8d7c28 (diff)
downloadlinhes_pkgbuild-9368d08f072ae32e7984417deb44472293129754.zip
linhes_pkgbuild-9368d08f072ae32e7984417deb44472293129754.tar.gz
linhes_pkgbuild-9368d08f072ae32e7984417deb44472293129754.tar.bz2
LinHES-system: mythwelcome-set-alarm.sh: add mythwelcome-set-alarm-user.sh to allow user to run additional cmds
unclutter-toggle.sh: adjust defaults linhes_update2.sh and lh_system_host_update: remove pacman --force option as it isn't supported anymore
Diffstat (limited to 'abs/core/LinHES-system/mythwelcome-set-alarm.sh')
-rwxr-xr-xabs/core/LinHES-system/mythwelcome-set-alarm.sh11
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