modules/freifunk: disable gateway test for now due to uci problems
[project/luci.git] / modules / freifunk / root / etc / init.d / freifunk
index b7a1f90..801dd5b 100755 (executable)
@@ -5,7 +5,18 @@
 START=99
 
 boot() {
-       echo "*/5 * * * *       killall -HUP dnsmasq" >> /etc/crontabs/root
+       grep -q 'killall -HUP dnsmasq' /etc/crontabs/root || {
+               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
+       }
 }