summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xmodules/freifunk/root/etc/init.d/freifunk2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk
index 40fa50853..d90e3ff5e 100755
--- a/modules/freifunk/root/etc/init.d/freifunk
+++ b/modules/freifunk/root/etc/init.d/freifunk
@@ -5,6 +5,8 @@
START=99
boot() {
+ test -f /etc/crontabs/root || touch /etc/crontabs/root
+
grep -q 'killall -HUP dnsmasq' /etc/crontabs/root || {
echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root
}