From 73ebad06da8a6f93308ca6924f468f1a3daf70bb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 16 May 2009 17:30:35 +0000 Subject: [PATCH] luci-0.8: merge r4532 --- .../package/freifunk-watchdog/files/freifunk-watchdog.init | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init b/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init index 1f87bf744f..d6ede09b61 100755 --- a/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init +++ b/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init @@ -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 } -- 2.30.2