freifunk-common: neigh.sh: fix for new olsrd 0.9.5 874/head
authorBastian Bittorf <bb@npl.de>
Mon, 12 Dec 2016 07:43:23 +0000 (08:43 +0100)
committerBastian Bittorf <bb@npl.de>
Mon, 12 Dec 2016 07:48:11 +0000 (08:48 +0100)
commit524439cd1647e5d6d7b48f9c75ec5800a5444109
tree7d7ce58ac3489123002004fa3228b0be75b098a3
parentac5bd8c2f1b74f7a6e0c09629c4ba96e3a8da037
freifunk-common: neigh.sh: fix for new olsrd 0.9.5

Starting with version 0.9.5 the new olsr-deamon behaves
more standard-compliant and outputs correct HTTP-headers.
This would confuse the script and abort parsing.

Fix that by only trying to parse the JSON-value and
just ignore the other stuff. After this, we can see neighbours again.

Thanks to FreifunkUFO <ufo@rund.freifunk.net> for spotting this.
contrib/package/freifunk-common/files/usr/bin/neigh.sh