diff options
Diffstat (limited to 'files/common')
-rwxr-xr-x | files/common/sbin/n2n_watchdog | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/common/sbin/n2n_watchdog b/files/common/sbin/n2n_watchdog index 247753b..c57725c 100755 --- a/files/common/sbin/n2n_watchdog +++ b/files/common/sbin/n2n_watchdog @@ -1,6 +1,6 @@ #!/bin/ash -if [[ `uci get batman-adv.bat0.gw_mode` = "server" ]]; then +if [[ ` batctl gw_mode | awk '{print $1}'` = "server" ]]; then n2n_pwd=`wget http://www.freifunk-jena.de/n2n -O - -q` n2n1_pwd_old=`uci get n2n.@edge[1].key` |