diff --git a/ffs-watchdog/files/usr/sbin/ffs-watchdog b/ffs-watchdog/files/usr/sbin/ffs-watchdog index 5d1f6ac6ca2eb6fbbd86780c5db0dd7c9dc10d05..084977edadf043af8ef4b5b539359e0fd268b463 100755 --- a/ffs-watchdog/files/usr/sbin/ffs-watchdog +++ b/ffs-watchdog/files/usr/sbin/ffs-watchdog @@ -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