diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-02-13 11:21:18 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-02-13 11:21:18 +0000 |
commit | c3e4cd62a70679bc79c8d1f218eeea934460d00a (patch) | |
tree | 13c4ed2ebd3654f4468e646ccef61f723152bf9f /modules/freifunk/root/usr/sbin | |
parent | 63371656cba7d338c75ad3ed4361ace055b12f3f (diff) |
modules/freifunk: make ff_rdate more efficient
Diffstat (limited to 'modules/freifunk/root/usr/sbin')
-rwxr-xr-x | modules/freifunk/root/usr/sbin/ff_rdate | 2 |
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 549293b75e..dc2c7b2d2c 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 |