projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
ac5bd8c
)
Merge pull request #874 from bittorf/master
author
Jo-Philipp Wich
<jo@mein.io>
Mon, 12 Dec 2016 08:03:47 +0000
(09:03 +0100)
committer
GitHub
<noreply@github.com>
Mon, 12 Dec 2016 08:03:47 +0000
(09:03 +0100)
freifunk-common: neigh.sh: fix for new olsrd 0.9.5
contrib/package/freifunk-common/files/usr/bin/neigh.sh
patch
|
blob
|
history
diff --git
a/contrib/package/freifunk-common/files/usr/bin/neigh.sh
b/contrib/package/freifunk-common/files/usr/bin/neigh.sh
index
b1dc01a
..
59ea8f9
100755
(executable)
--- a/
contrib/package/freifunk-common/files/usr/bin/neigh.sh
+++ b/
contrib/package/freifunk-common/files/usr/bin/neigh.sh
@@
-66,7
+66,8
@@
VARS="$VARS neighborLinkQuality:NLQ linkCost:Cost remoteHostname:Host"
for HOST in '127.0.0.1' '::1';do
json_init
- json_load "$(echo /links|nc ${HOST} 9090)"
+ json_load "$( echo /links | nc $HOST 9090 | grep ^'{' )" # remove header/non-json
+
if json_is_a links array;then
json_select links
for v in ${VARS};do