luci-app-bmx7: fix bmx7-info script's "$info" call 431/head
authorRoger Pueyo Centelles <roger.pueyo@guifi.net>
Fri, 7 Dec 2018 17:04:10 +0000 (18:04 +0100)
committerRoger Pueyo Centelles <roger.pueyo@guifi.net>
Fri, 7 Dec 2018 17:04:10 +0000 (18:04 +0100)
commit3e259f8ec58f982ce565533f14006102ec9f6565
treef07b906ee7daf7109577762d37078adaa97fa3d4
parenta7d7f4baa888bbccc17ac2020ff98994236c8af0
luci-app-bmx7: fix bmx7-info script's "$info" call

This commit fixes a bug in bmx7-info script's "$info" call when no
interfaces are being used by BMX7, or when no links have been
established. In those cases, the generated JSON output struct contained
extra commas, which made it invalid.

Closes #430

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
luci-app-bmx7/files/www/cgi-bin/bmx7-info