git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
07b6a70
)
contrib/package/freifunk-watchdog: nuke cronjob if wd is disabled and stop is invoked
author
Jo-Philipp Wich
<redacted>
Sat, 16 May 2009 17:30:01 +0000
(17:30 +0000)
committer
Jo-Philipp Wich
<redacted>
Sat, 16 May 2009 17:30:01 +0000
(17:30 +0000)
contrib/package/freifunk-watchdog/files/freifunk-watchdog.init
patch
|
blob
|
history
diff --git
a/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init
b/contrib/package/freifunk-watchdog/files/freifunk-watchdog.init
index 1f87bf744f74b9e1d09d24327efc5f09246b5a95..d6ede09b61076e6cf9c8798640d162ba550f2816 100755
(executable)
--- 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
}
git clone https://git.99rst.org/PROJECT