From a7a532d8ccf80c59d5d68f0ba9b0441ffea8cdcd Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 1 May 2009 13:23:09 +0000 Subject: [PATCH] luci-0.8: Merge r4458 --- modules/freifunk/root/etc/config/freifunk | 9 ++++----- 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 c8eeee223..ce855e2fe 100644 --- a/modules/freifunk/root/etc/config/freifunk +++ b/modules/freifunk/root/etc/config/freifunk @@ -55,27 +55,26 @@ 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 diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 13dfde7f6..79bcbc7ba 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 ) & } -- 2.25.1