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

Disable watchdog while SSH connection exists.

parent cab1844d
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,8 @@ fi ...@@ -7,7 +7,8 @@ fi
FFS=/tmp/.gw.ffs FFS=/tmp/.gw.ffs
if [ "$(uci get gluon-setup-mode.@setup_mode[0].enabled)" = "0" ] && 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) NOW=$(date +%s)
if [ -n "$(batctl gwl | grep '=>')" ]; then if [ -n "$(batctl gwl | grep '=>')" ]; then
echo $NOW >$FFS echo $NOW >$FFS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment