X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=contrib%2Fpackage%2Ffreifunk-common%2Ffiles%2Fusr%2Fbin%2Fneigh.sh;fp=contrib%2Fpackage%2Ffreifunk-common%2Ffiles%2Fusr%2Fbin%2Fneigh.sh;h=468ed7a3e07b532725b78ead574336f525ceeb33;hp=59ea8f914fe3f31a007c9a36de80679807707c98;hb=8ca5d6da9640f78b67081f2d1edeb0a6d0ca2120;hpb=524439cd1647e5d6d7b48f9c75ec5800a5444109 diff --git a/contrib/package/freifunk-common/files/usr/bin/neigh.sh b/contrib/package/freifunk-common/files/usr/bin/neigh.sh index 59ea8f914..468ed7a3e 100755 --- a/contrib/package/freifunk-common/files/usr/bin/neigh.sh +++ b/contrib/package/freifunk-common/files/usr/bin/neigh.sh @@ -66,7 +66,7 @@ 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 | grep ^'{' )" # remove header/non-json + json_load "$( echo /links | nc $HOST 9090 | sed -n '/^[}{ ]/p' )" # remove header/non-json if json_is_a links array;then json_select links