From: Jo-Philipp Wich Date: Fri, 1 May 2009 14:16:28 +0000 (+0000) Subject: modules/freifunk: silence grep errors if /etc/crontabs/root does not exist X-Git-Tag: 0.9.0~491 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ceaca7e7cee59348f636ef6656e96f32037f5b8b;p=project%2Fluci.git modules/freifunk: silence grep errors if /etc/crontabs/root does not exist --- diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 40fa508536..d90e3ff5e9 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 }