From 3c86ff9ec865acdae8a64b8cc18d7cfd919c073f Mon Sep 17 00:00:00 2001 From: Darryl Quinn Date: Mon, 13 Jul 2015 20:32:17 -0500 Subject: [PATCH] feature: changed version element name, added grid square --- files/www/cgi-bin/sysinfo.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/files/www/cgi-bin/sysinfo.json b/files/www/cgi-bin/sysinfo.json index d8f9b2c4..51f291dc 100755 --- a/files/www/cgi-bin/sysinfo.json +++ b/files/www/cgi-bin/sysinfo.json @@ -42,7 +42,7 @@ read_query_string(); my %info; -$info{"json_version"}="1.0"; +$info{"api_version"}="1.0"; # ============ GENERATE INFO HASH ========= $node=nvram_get("node"); @@ -71,9 +71,9 @@ $info{"firmware_version"}=$fwver; # ------- Tunnel Installed if (-e "/usr/sbin/vtund") { - $tunnel_installed="YES"; + $tunnel_installed="true"; } else { - $tunnel_installed="NO"; + $tunnel_installed="false"; } $info{"tunnel_installed"}=$tunnel_installed; @@ -98,6 +98,11 @@ $lon=`tail -1 /etc/latlon 2>/dev/null`; chomp($lon); $info{"lon"}=$lon; +# ------- GRID SQUARE +$grid=`head -1 /etc/gridsquare 2>/dev/null`; +chomp($grid); +$info{"grid_square"}=$grid; + # ----------- GENERATE THE JSON ------------ print "{";