Merge r4145
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Jan 2009 20:25:05 +0000 (20:25 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Jan 2009 20:25:05 +0000 (20:25 +0000)
modules/freifunk/root/etc/init.d/freifunk

index b7a1f90eb9a074a76cfc6d52b5d1c034d9a0a12d..799676fe9e6f4a7c630882089561df72e8045c23 100755 (executable)
@@ -5,7 +5,9 @@
 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
+       }
 
        [ -f /etc/rc.local ] && . /etc/rc.local
 }