projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6337165
)
modules/freifunk: make ff_rdate more efficient
author
Manuel Munz
<freifunk@somakoma.de>
Sun, 13 Feb 2011 11:21:18 +0000
(11:21 +0000)
committer
Manuel Munz
<freifunk@somakoma.de>
Sun, 13 Feb 2011 11:21:18 +0000
(11:21 +0000)
modules/freifunk/root/usr/sbin/ff_rdate
patch
|
blob
|
history
diff --git
a/modules/freifunk/root/usr/sbin/ff_rdate
b/modules/freifunk/root/usr/sbin/ff_rdate
index 549293b75e0c10807775fedd241d058b7b1d1f96..dc2c7b2d2c7004bb6b620d6a024a524750089d2e 100755
(executable)
--- 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