summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-02-13 11:21:18 +0000
committerManuel Munz <freifunk@somakoma.de>2011-02-13 11:21:18 +0000
commitc3e4cd62a70679bc79c8d1f218eeea934460d00a (patch)
tree13c4ed2ebd3654f4468e646ccef61f723152bf9f /modules
parent63371656cba7d338c75ad3ed4361ace055b12f3f (diff)
modules/freifunk: make ff_rdate more efficient
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/freifunk/root/usr/sbin/ff_rdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/freifunk/root/usr/sbin/ff_rdate b/modules/freifunk/root/usr/sbin/ff_rdate
index 549293b75..dc2c7b2d2 100755
--- a/modules/freifunk/root/usr/sbin/ff_rdate
+++ b/modules/freifunk/root/usr/sbin/ff_rdate
@@ -6,7 +6,7 @@ uci_get_one() {
done
}
-local servers="$(uci_get_one 'network.wan.lease_timesrv') $(uci show timeserver |grep hostname |cut -d '=' -f 2 |tr '\n' ' ')"
+local servers="$(uci_get_one 'network.wan.lease_timesrv') $(uci show timeserver | sed -ne 's/.*hostname=//p')"
if [ -n "$servers" ]; then
for server in $servers; do