projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88ac7d2
)
Merge r4145
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Jan 2009 20:25:05 +0000
(20:25 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Jan 2009 20:25:05 +0000
(20:25 +0000)
modules/freifunk/root/etc/init.d/freifunk
patch
|
blob
|
history
diff --git
a/modules/freifunk/root/etc/init.d/freifunk
b/modules/freifunk/root/etc/init.d/freifunk
index b7a1f90eb9a074a76cfc6d52b5d1c034d9a0a12d..799676fe9e6f4a7c630882089561df72e8045c23 100755
(executable)
--- a/
modules/freifunk/root/etc/init.d/freifunk
+++ b/
modules/freifunk/root/etc/init.d/freifunk
@@
-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
}