modules/freifunk: add olsrd watchdog script, remove olsrd interface defaults
[project/luci.git] / modules / freifunk / root / etc / init.d / freifunk
index 61bd580..a61f8b7 100755 (executable)
@@ -13,6 +13,10 @@ boot() {
                echo "* * * * *         /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root
        }
 
+       grep -q '/usr/sbin/ff_olsr_watchdog' /etc/crontabs/root || {
+               echo "*/5 * * * *       /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root
+       }
+
        [ -f /etc/rc.local ] && . /etc/rc.local
        [ -d /etc/rc.local.d ] && {
                for file in /etc/rc.local.d/*; do