diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-01 13:19:49 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-01 13:19:49 +0000 |
commit | c2dff916a6186ac227c238d72a1d8d0c65d9fe03 (patch) | |
tree | ef052a98622fdaef7f390948e7c317352ee51b4d /modules/freifunk/root/etc | |
parent | 67fbe1b33c2195cc763309ba7467100f56676467 (diff) |
modules/freifunk: setup config and cron jobs for rdate; sync time on boot
Diffstat (limited to 'modules/freifunk/root/etc')
-rw-r--r-- | modules/freifunk/root/etc/config/freifunk | 9 | ||||
-rwxr-xr-x | modules/freifunk/root/etc/init.d/freifunk | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/modules/freifunk/root/etc/config/freifunk b/modules/freifunk/root/etc/config/freifunk index 516160e82f..ce855e2fe8 100644 --- a/modules/freifunk/root/etc/config/freifunk +++ b/modules/freifunk/root/etc/config/freifunk @@ -55,29 +55,28 @@ config defaults wifi_device option disabled 0 option txpower 10 - config defaults wifi_iface option mode adhoc option bssid 02:CA:FF:EE:BA:BE option sw_merge 1 - config defaults interface option netmask 255.0.0.0 option dns "88.198.178.18 141.54.1.1 212.204.49.83 208.67.220.220 208.67.222.222" - config defaults alias option netmask 255.255.255.0 - config defaults dhcp option leasetime 30m - config defaults olsr_interface option Ip4Broadcast 255.255.255.255 +config defaults time + option rdate_servers "128.138.140.44 171.64.7.77 171.64.7.99 81.169.154.44 130.133.1.10" + + config community leipzig option name "Freifunk Leipzig" option homepage http://leipzig.freifunk.net diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 13dfde7f68..79bcbc7ba9 100755 --- 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 } + 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 @@ -24,5 +28,5 @@ boot() { done } - /etc/init.d/cron restart + ( /usr/sbin/ff_rdate; /etc/init.d/cron restart ) & } |