luci-0.8: merge r4532
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 16 May 2009 17:30:35 +0000 (17:30 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 16 May 2009 17:30:35 +0000 (17:30 +0000)
contrib/package/freifunk-watchdog/files/freifunk-watchdog.init

index 1f87bf744f74b9e1d09d24327efc5f09246b5a95..d6ede09b61076e6cf9c8798640d162ba550f2816 100755 (executable)
@@ -30,4 +30,10 @@ start()
 stop()
 {
        start-stop-daemon -q -p $PID -x $BIN -K
+
+       if ! /etc/init.d/freifunk-watchdog enabled; then
+               if grep -q "$BIN" /etc/crontabs/root 2>/dev/null; then
+                       sed -i -e "\\'$BIN'd" /etc/crontabs/root
+               fi
+       fi
 }