projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
950ab85
)
modules/freifunk: fix cronjob installation
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Jan 2009 20:24:27 +0000
(20:24 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Jan 2009 20:24:27 +0000
(20:24 +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
b7a1f90
..
799676f
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() {
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
}
[ -f /etc/rc.local ] && . /etc/rc.local
}