Skip to content
Snippets Groups Projects
Commit cab1844d authored by FFS-Roland's avatar FFS-Roland
Browse files

removing control file with timestamp if watchdog is disabled.

parent 361a354d
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment