From 2ea584beaff7cc132f1bc05f477bccc4505373c2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 25 Jan 2009 20:24:27 +0000 Subject: modules/freifunk: fix cronjob installation --- modules/freifunk/root/etc/init.d/freifunk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/freifunk/root/etc/init.d') diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index b7a1f90eb9..799676fe9e 100755 --- 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 } -- cgit v1.2.3