projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/freifunk: fix cron restart in init script
[project/luci.git]
/
modules
/
freifunk
/
root
/
etc
/
init.d
/
freifunk
diff --git
a/modules/freifunk/root/etc/init.d/freifunk
b/modules/freifunk/root/etc/init.d/freifunk
index
61bd580
..
13dfde7
100755
(executable)
--- a/
modules/freifunk/root/etc/init.d/freifunk
+++ b/
modules/freifunk/root/etc/init.d/freifunk
@@
-13,6
+13,10
@@
boot() {
echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root
}
echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root
}
+ grep -q '/usr/sbin/ff_olsr_watchdog' /etc/crontabs/root || {
+ echo "*/5 * * * * /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root
+ }
+
[ -f /etc/rc.local ] && . /etc/rc.local
[ -d /etc/rc.local.d ] && {
for file in /etc/rc.local.d/*; do
[ -f /etc/rc.local ] && . /etc/rc.local
[ -d /etc/rc.local.d ] && {
for file in /etc/rc.local.d/*; do
@@
-20,5
+24,5
@@
boot() {
done
}
done
}
-
killall -HUP crond 2>/dev/null || /etc/init.d/cron
start
+
/etc/init.d/cron re
start
}
}