Commit cab1844d authored by FFS-Roland's avatar FFS-Roland

removing control file with timestamp if watchdog is disabled.

parent 361a354d
......@@ -5,9 +5,9 @@ if [ $(ps | grep -c "$ME") -gt 4 ]; then
exit 1
fi
FFS=/tmp/.gw.ffs
if [ "$(uci get gluon-setup-mode.@setup_mode[0].enabled)" = "0" ] &&
[ "$(uci get system.@system[0].enable_watchdog)" != "0" ]; then
FFS=/tmp/.gw.ffs
NOW=$(date +%s)
if [ -n "$(batctl gwl | grep '=>')" ]; then
echo $NOW >$FFS
......@@ -25,4 +25,7 @@ if [ "$(uci get gluon-setup-mode.@setup_mode[0].enabled)" = "0" ] &&
echo $NOW >$FFS
fi
fi
else
rm $FFS
logger -t $ME "disabled"
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment