diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-10-30 21:07:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 21:07:55 +0100 |
commit | 3415fffbc20c9fcdf18d48f04bb84f0fa6baacdc (patch) | |
tree | d245ee37e94bb5c17fa944c36ae6805eea222aaa /applications/luci-app-bmx7/root/www | |
parent | a392dbf888f0cdaee211eca9b58becc804ee3458 (diff) | |
parent | 016941039223f1cb62a3eafa0bf2e8194f19c8a8 (diff) |
Merge pull request #4554 from FreifunkUFO/master
luci-app-bmx7: fix displaying values
Diffstat (limited to 'applications/luci-app-bmx7/root/www')
-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 |