summaryrefslogtreecommitdiff
path: root/files/common
diff options
context:
space:
mode:
Diffstat (limited to 'files/common')
-rwxr-xr-xfiles/common/sbin/n2n_watchdog2
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`
contact: Jan Huwald // Impressum