From: Manuel Munz Date: Sun, 13 Feb 2011 11:21:18 +0000 (+0000) Subject: modules/freifunk: make ff_rdate more efficient X-Git-Tag: 0.11.0~2258 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c3e4cd62a70679bc79c8d1f218eeea934460d00a;p=oweals%2Fluci.git modules/freifunk: make ff_rdate more efficient --- 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