diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-01 14:16:28 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-01 14:16:28 +0000 |
commit | ceaca7e7cee59348f636ef6656e96f32037f5b8b (patch) | |
tree | 3eb1b0be18205b120aa76df7127ff770c2a775de /modules | |
parent | b3ea7cd0ed31535a1faf5c962a9a9fabeea17267 (diff) |
modules/freifunk: silence grep errors if /etc/crontabs/root does not exist
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/freifunk/root/etc/init.d/freifunk | 2 |
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 } |