diff options
author | egon_ffj <egon@freifunk-jena.de> | 2011-06-24 12:22:01 (GMT) |
---|---|---|
committer | egon_ffj <egon@freifunk-jena.de> | 2011-06-24 12:22:01 (GMT) |
commit | 571745065914e6234ad1a6d6923e9fda91f63751 (patch) | |
tree | 1032cb00bf98cacaf14f86a5b87fd5b39730aa3e | |
parent | 183325fb1219e75eb8d1e5c09b1252577ecf6ede (diff) |
* added output of status messages to syslog
-rwxr-xr-x | files/sbin/n2n_watchdog | 2 |
1 files changed, 2 insertions, 0 deletions
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 |