X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Ffreifunk%2Froot%2Fetc%2Finit.d%2Ffreifunk;h=13dfde7f682024f60e3602fef240224d59ac82c7;hp=61bd58055b4fe6d24ec493b117c728d82e6c3c50;hb=ff57f4f870639b5ea8064d789d222193f874112b;hpb=d7d27ffe6adfb42be253bf2a62e7cc4e209affaf diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 61bd58055..13dfde7f6 100755 --- a/modules/freifunk/root/etc/init.d/freifunk +++ b/modules/freifunk/root/etc/init.d/freifunk @@ -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 @@ -20,5 +24,5 @@ boot() { done } - killall -HUP crond 2>/dev/null || /etc/init.d/cron start + /etc/init.d/cron restart }