contrib/meshwizard: add watchdog plugin in olsr config
authorManuel Munz <freifunk@somakoma.de>
Mon, 28 May 2012 18:52:55 +0000 (18:52 +0000)
committerManuel Munz <freifunk@somakoma.de>
Mon, 28 May 2012 18:52:55 +0000 (18:52 +0000)
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh

index f06156a5f3864d2714eb889cfe8881b6f14aa840..10b1afff854f701ebca009705a9d77a7dcf07f8c 100755 (executable)
@@ -58,3 +58,12 @@ if [ "$general_sharenet" == 1 ]; then
 
        uci_commitverbose "Setup olsrd_dyngw_plain plugin" olsrd
 fi
+
+# Setup watchdog
+uci batch << EOF
+       set olsrd.olsrd_watchdog=LoadPlugin
+       set olsrd.olsrd_watchdog.library="olsrd_watchdog.so.0.1"
+       set olsrd.olsrd_watchdog.file="/var/run/olsrd.watchdog"
+       set olsrd.olsrd_watchdog.interval=30
+EOF
+uci_commitverbose "Setup olsr watchdog plugin" olsrd