summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/root/usr/sbin
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-02-12 19:52:48 +0000
committerManuel Munz <freifunk@somakoma.de>2011-02-12 19:52:48 +0000
commitdb1454cf48dbf4787088809973912f804db21eb4 (patch)
tree456735e537170ab26b2898033bdd93c11c4eb350 /modules/freifunk/root/usr/sbin
parent518d981c9274c66820d1e4651b375a9cbec8fd7c (diff)
modules/freifunk: change ff_rdate to use /etc/config/timeserver
Diffstat (limited to 'modules/freifunk/root/usr/sbin')
-rwxr-xr-xmodules/freifunk/root/usr/sbin/ff_rdate3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/freifunk/root/usr/sbin/ff_rdate b/modules/freifunk/root/usr/sbin/ff_rdate
index 5a728f6734..549293b75e 100755
--- a/modules/freifunk/root/usr/sbin/ff_rdate
+++ b/modules/freifunk/root/usr/sbin/ff_rdate
@@ -6,8 +6,7 @@ uci_get_one() {
done
}
-local servers=$(uci_get_one "network.wan.lease_timesrv" \
- "system.time.rdate_servers" "freifunk.time.rdate_servers")
+local servers="$(uci_get_one 'network.wan.lease_timesrv') $(uci show timeserver |grep hostname |cut -d '=' -f 2 |tr '\n' ' ')"
if [ -n "$servers" ]; then
for server in $servers; do