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: setup config and cron jobs for rdate; sync time on boot
[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
13dfde7
..
79bcbc7
100755
(executable)
--- a/
modules/freifunk/root/etc/init.d/freifunk
+++ b/
modules/freifunk/root/etc/init.d/freifunk
@@
-17,6
+17,10
@@
boot() {
echo "*/5 * * * * /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root
}
echo "*/5 * * * * /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root
}
+ grep -q '/usr/sbin/ff_rdate' /etc/crontabs/root || {
+ echo "0 */4 * * * /usr/sbin/ff_rdate >> /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
@@
-24,5
+28,5
@@
boot() {
done
}
done
}
- /etc/init.d/cron restart
+ ( /usr/sbin/ff_rdate; /etc/init.d/cron restart ) &
}
}