From 9004d72b6cf1f800a788c337add6b7ec34dd8c96 Mon Sep 17 00:00:00 2001 From: egon0 Date: Fri, 24 Jun 2011 14:22:01 +0200 Subject: * added output of status messages to syslog diff --git a/files/sbin/n2n_watchdog b/files/sbin/n2n_watchdog index aeedcb7..247753b 100755 --- a/files/sbin/n2n_watchdog +++ b/files/sbin/n2n_watchdog @@ -11,6 +11,7 @@ if [[ `uci get batman-adv.bat0.gw_mode` = "server" ]]; then uci set n2n.@edge[1].key=$n2n_pwd uci commit n2n /etc/init.d/n2n restart + logger "n2n password updated and restarted (new password)" fi sleep 5 @@ -18,6 +19,7 @@ if [[ `uci get batman-adv.bat0.gw_mode` = "server" ]]; then if [[ $n2n_neighbors -lt 1 ]]; then /etc/init.d/n2n restart + logger "n2n restarted (no neighbors via n2n)" fi else exit 0 -- cgit v0.10.1