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

Disable watchdog while SSH connection exists.

parent cab1844d
......@@ -7,7 +7,8 @@ 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
[ "$(uci get system.@system[0].enable_watchdog)" != "0" ] &&
[ "$(netstat -nt | grep -c ':22')" = "0" ]; then
NOW=$(date +%s)
if [ -n "$(batctl gwl | grep '=>')" ]; then
echo $NOW >$FFS
......
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