summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-01 14:16:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-01 14:16:28 +0000
commitceaca7e7cee59348f636ef6656e96f32037f5b8b (patch)
tree3eb1b0be18205b120aa76df7127ff770c2a775de /modules/freifunk/root
parentb3ea7cd0ed31535a1faf5c962a9a9fabeea17267 (diff)
modules/freifunk: silence grep errors if /etc/crontabs/root does not exist
Diffstat (limited to 'modules/freifunk/root')
-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
}