X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Ffreifunk%2Froot%2Fetc%2Finit.d%2Ffreifunk;h=61bd58055b4fe6d24ec493b117c728d82e6c3c50;hp=799676fe9e6f4a7c630882089561df72e8045c23;hb=d7d27ffe6adfb42be253bf2a62e7cc4e209affaf;hpb=2ea584beaff7cc132f1bc05f477bccc4505373c2 diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 799676fe9..61bd58055 100755 --- a/modules/freifunk/root/etc/init.d/freifunk +++ b/modules/freifunk/root/etc/init.d/freifunk @@ -9,5 +9,16 @@ boot() { echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root } + grep -q '/usr/sbin/ff_olsr_test_gw' /etc/crontabs/root || { + echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root + } + [ -f /etc/rc.local ] && . /etc/rc.local + [ -d /etc/rc.local.d ] && { + for file in /etc/rc.local.d/*; do + test -f "$file" && . "$file" + done + } + + killall -HUP crond 2>/dev/null || /etc/init.d/cron start }