diff options
Diffstat (limited to 'script/uactivity/watchdog/#20-yaUSBir_watchdog')
-rwxr-xr-x | script/uactivity/watchdog/#20-yaUSBir_watchdog | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/uactivity/watchdog/#20-yaUSBir_watchdog b/script/uactivity/watchdog/#20-yaUSBir_watchdog index d6e70dc..4307a55 100755 --- a/script/uactivity/watchdog/#20-yaUSBir_watchdog +++ b/script/uactivity/watchdog/#20-yaUSBir_watchdog @@ -13,6 +13,7 @@ IRSEND="irsend -d /var/run/lirc/ya_usbir SEND_ONCE yaUsbIR_control C_WATCHDOG %s trigger_watchdog(){ # Calculate n1, n2 and n3 values + OK=false eval $(bc <<EOF 2> /dev/null watchdog = ${WATCHDOG_TIME} @@ -57,7 +58,7 @@ deactivate_watchdog(){ -case "${1}" in +case "${UACTIVITY_ORGIN}" in startup) trigger_watchdog || exit 1 ;; |