From c3a317d424541b36b2ea1a2e44b685ccd1f16762 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Tue, 2 Aug 2022 16:56:27 -0700 Subject: [PATCH] Provide status about state of wan wifi connection (#472) * Provide status about state of wan wifi connection * Updated icons * One more icon --- files/www/cgi-bin/setup | 17 ++++++++++++++++- files/www/done.png | Bin 0 -> 556 bytes files/www/donedone.png | Bin 0 -> 572 bytes files/www/notdone.png | Bin 0 -> 629 bytes 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 files/www/done.png create mode 100755 files/www/donedone.png create mode 100755 files/www/notdone.png diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index e75416f5..9d1f6f23 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -1337,7 +1337,22 @@ if (phycount > 1 and (wifi_enable ~= "1" or wifi2_enable ~= "1")) or (phycount = end end - html.print("
WAN Wifi ClientEnable  ") + local connected = "/notdone.png" + local cmessage = "Not connected." + local wanintf = aredn.hardware.get_iface_name("wan") + local essid = capture_and_match("iwinfo " .. wanintf .. " info", 'ESSID: "(.+)"') + if essid == wifi3_ssid then + if pingOK then + connected = "/donedone.png" + cmessage = "Connected to Wifi and Internet." + else + connected = "/done.png" + cmessage = "Connected to Wifi. Not connected to Internet." + end + end + + html.print("
WAN Wifi Client ") + html.print("Enable  ") if wifi_enable ~= "1" and wifi2_enable ~= "1" and phycount > 1 then html.print("WAN Wifi Client band