diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-10-29 17:29:20 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-10-29 17:03:55 +0000 |
commit | 016941039223f1cb62a3eafa0bf2e8194f19c8a8 (patch) | |
tree | 8e06f5620ddaf5384782f77f7c12fe2c02f4c2d8 /applications/luci-app-bmx7/root/www/cgi-bin | |
parent | f193364c2c5aadad50e118d5e0b6d59ba436a486 (diff) |
luci-app-bmx7: fix displaying values
Suggested-by: FreifunkUFO <ufo@rund.freifunk.net>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'applications/luci-app-bmx7/root/www/cgi-bin')
-rwxr-xr-x | applications/luci-app-bmx7/root/www/cgi-bin/bmx7-info | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-bmx7/root/www/cgi-bin/bmx7-info b/applications/luci-app-bmx7/root/www/cgi-bin/bmx7-info index 7388ed12c3..327e3f0f16 100755 --- a/applications/luci-app-bmx7/root/www/cgi-bin/bmx7-info +++ b/applications/luci-app-bmx7/root/www/cgi-bin/bmx7-info @@ -90,7 +90,7 @@ if [ "${QUERY##*/}" == "all" ]; then QALL=1 fi -if [ "$QUERY" == '$info' ]; then +if [ "$QUERY" == 'info' ]; then echo '{ "info": [ ' print_query status echo -n "," @@ -100,7 +100,7 @@ if [ "$QUERY" == '$info' ]; then echo "] }" fi -if [ "$QUERY" == '$neighbours' ]; then +if [ "$QUERY" == 'neighbours' ]; then QALL=1 echo '{ "neighbours": [ ' echo '{ "originators": ' @@ -111,11 +111,11 @@ if [ "$QUERY" == '$neighbours' ]; then echo "} ] }" exit 0 -else if [ "$QUERY" == '$tunnels' ]; then +else if [ "$QUERY" == 'tunnels' ]; then bmx7 -c --jshow tunnels /r=0 exit 0 - else if [ "$QUERY" == '$originators' ]; then + else if [ "$QUERY" == 'originators' ]; then bmx7 -c --jshow originators /r=0 exit 0 |