diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index 8d20bb48..dcece216 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -453,6 +453,7 @@ system "rm -rf /tmp/web/upload $tmpdir" unless $debug; http_header(); html_header("$node administration", 1); print "
\n"; +alert_banner(); print "
\n"; print "\n"; print "
\n"; diff --git a/files/www/cgi-bin/mesh b/files/www/cgi-bin/mesh index ab553d01..c1547747 100755 --- a/files/www/cgi-bin/mesh +++ b/files/www/cgi-bin/mesh @@ -155,6 +155,8 @@ print " -1, # NanoBridge M3 + '0xc2a2' => 0, # Bullet 2 HP + '0xe1b2' => 0, # Rocket M2 + '0xe202' => 1, # Bullet M2 + ); + + if (exists $model{$boardid}) + { + return $model{$boardid}; + } + else + { + return -1; + } + +} + + +sub alert_banner +{ + # Device compatibility alert + if ( is_hardware_supported() != 1 ){ + if (is_hardware_supported() == 0 ){ + print "\n"; + } + else { + print "\n"; + } + } +} + + #weird uhttpd/busybox error requires a 1 at the end of this file 1 diff --git a/files/www/cgi-bin/ports b/files/www/cgi-bin/ports index d2f57fe1..c4627c34 100755 --- a/files/www/cgi-bin/ports +++ b/files/www/cgi-bin/ports @@ -15,6 +15,7 @@ if($config eq "" or -e "/tmp/reboot-required") http_header(); html_header("$node setup", 1); print "
\n"; + alert_banner(); navbar("ports"); print "

"; if($config eq "") @@ -508,6 +509,7 @@ if($parms{button_save} and not (@port_err or @dhcp_err or @dmz_err or @serv_err) http_header() unless $debug == 2; html_header("$node setup", 1); print "
\n"; +alert_banner(); print "\n" unless $debug == 2; print "\n" if $debug == 2; diff --git a/files/www/cgi-bin/scan b/files/www/cgi-bin/scan index 9fcd3001..00245802 100755 --- a/files/www/cgi-bin/scan +++ b/files/www/cgi-bin/scan @@ -24,6 +24,7 @@ print "\n" if -f "/tmp/ print "\n"; print "\n"; print "
\n"; +alert_banner(); print "

$node WiFi scan


\n"; if(-f "/tmp/web/autoscan") diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 073f687d..0e34b610 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -321,6 +321,7 @@ reboot_page("/cgi-bin/status") if $parms{button_reboot}; http_header() unless $debug == 2; html_header(nvram_get("node") . " setup", 1); print "
\n"; +alert_banner(); print "\n" unless $debug == 2; print "\n" if $debug == 2; diff --git a/files/www/cgi-bin/signal b/files/www/cgi-bin/signal index 665cac49..6ac6e0af 100755 --- a/files/www/cgi-bin/signal +++ b/files/www/cgi-bin/signal @@ -158,6 +158,8 @@ print "\n"; print "\n"; print "
\n"; +alert_banner(); + print "

$node signal strength


\n"; print "\n"; diff --git a/files/www/cgi-bin/status b/files/www/cgi-bin/status index ab985395..b7867f4c 100755 --- a/files/www/cgi-bin/status +++ b/files/www/cgi-bin/status @@ -29,6 +29,8 @@ html_header("Broadband-Hamnet Node $node", 1); print "\n"; print "
\n"; +alert_banner(); + # page header print "

$node"; print " / $tactical" if $tactical; diff --git a/files/www/cgi-bin/sysinfo b/files/www/cgi-bin/sysinfo index 113696c3..a36b9537 100755 --- a/files/www/cgi-bin/sysinfo +++ b/files/www/cgi-bin/sysinfo @@ -10,6 +10,18 @@ print "
\n";
 print " node: ", nvram_get("node"), "\n";
 print "model: ", `/usr/local/bin/get_model`, "\n";
 
+if ( is_hardware_supported() !=1  ){
+    print "!!!! UNSUPPORTED DEVICE !!!!\n";
+    print "boardid: " , hardware_boardid() , "\n";
+    if ( is_hardware_supported == 0 ) {
+        print "Device HAS BEEN TESTED AS UNSUPPORTED\n";
+    }
+    else {
+        print "Device has not been tested. Please file a ticket with your experiences.\n";
+    }
+    print "\n";
+}
+
 foreach(`ifconfig -a`)
 {
     next unless /^(\S+) .*HWaddr (\S+)/;