projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3ea7cd
)
modules/freifunk: silence grep errors if /etc/crontabs/root does not exist
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 1 May 2009 14:16:28 +0000
(14:16 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 1 May 2009 14:16:28 +0000
(14:16 +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 40fa50853628acbb517246096e6b286175ea1d80..d90e3ff5e907dc8ed4070431be47d0535fe6831a 100755
(executable)
--- 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
}