diff options
| author | egon0 <ms@resonar.de> | 2011-06-24 12:22:01 (GMT) | 
|---|---|---|
| committer | egon0 <ms@resonar.de> | 2011-06-24 12:22:01 (GMT) | 
| commit | 9004d72b6cf1f800a788c337add6b7ec34dd8c96 (patch) | |
| tree | 1032cb00bf98cacaf14f86a5b87fd5b39730aa3e /files/sbin | |
| parent | 1798e5166c7a63969a7db88cf5006aebf7e2486b (diff) | |
* added output of status messages to syslog
Diffstat (limited to 'files/sbin')
| -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 | 
