Merge pull request #874 from bittorf/master

freifunk-common: neigh.sh: fix for new olsrd 0.9.5
This commit is contained in:
Jo-Philipp Wich 2016-12-12 09:03:47 +01:00 committed by GitHub
commit 0895fb41e9

View file

@ -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