From 60871499142d00b473f87552145ab3f77481d9f0 Mon Sep 17 00:00:00 2001 From: Steve AB7PA <69524416+ab7pa@users.noreply.github.com> Date: Sat, 5 Mar 2022 20:52:41 -0700 Subject: [PATCH] add advanced WAN help (#259) --- files/www/cgi-bin/setup | 18 +++++++++--------- files/www/qmark.png | Bin 361 -> 335 bytes 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index d037fb44..9d3797f1 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -607,7 +607,7 @@ if parms.button_save then tactical = "" if node == "" then err("you must set the node name") - end + end end if node ~= "" and node:match("[^%w-]") or node:match("_") then err("invalid node name") @@ -695,7 +695,7 @@ if parms.button_save then aredn_info.set_nvram("node", parms.node); aredn_info.set_nvram("tactical", parms.tactical) aredn_info.set_nvram("config", parms.config) - + if not nixio.fs.stat("/tmp/web/save") then nixio.fs.mkdir("/tmp/web/save") end @@ -710,7 +710,7 @@ if parms.button_save then local f = io.popen("{ echo '" .. pw .. "'; sleep 1; echo '" .. pw .. "'; } | passwd") f:read("*a") f:close() - end + end io.open("/tmp/reboot-required", "w"):close() end if nixio.fs.stat("/tmp/unconfigured") and #errors == 0 then @@ -758,7 +758,7 @@ function loadCSS(url, callback) { stylesheet.onload = callback; head.appendChild(stylesheet); -} +} function loadScript(url, callback) { var head = document.getElementsByTagName('head')[0]; @@ -959,7 +959,7 @@ if #errors == 0 and nixio.fs.stat("/tmp/reboot-required") then html.print("

Reboot is required for changes to take effect

") end --- note name and type, password +-- node name and type, password html.print([[ @@ -1037,7 +1037,7 @@ if wifi_enable == "1" then local txpoweroffset = aredn.hardware.wifi_poweroffset(wifiintf) for i = aredn.hardware.wifi_maxpower(wifi_channel),1,-1 do - html.print("") + html.print("") end html.print("  ") html.print("Distance to
FARTHEST Neighbor

'0' is auto

") @@ -1225,11 +1225,11 @@ html.print("DNS 2
Advanced WAN Access") if wan_proto ~= "disabled" then - html.print("Allow others to
use my WAN") + html.print("
Allow others to
use my WAN  ") else hidden[#hidden + 1] = "" end -html.print("
Prevent LAN devices
from accessing WAN") +html.print("
Prevent LAN devices
from accessing WAN  ") -- wan wifi client if (phycount > 1 and (wifi_enable ~= "1" or wifi2_enable ~= "1")) or (phycount == 1 and wifi_enable ~= "1" and wifi2_enable ~= "1") and not M390model then @@ -1258,7 +1258,7 @@ if (phycount > 1 and (wifi_enable ~= "1" or wifi2_enable ~= "1")) or (phycount = end end - html.print("
WAN Wifi ClientEnable") + html.print("
WAN Wifi ClientEnable  ") if wifi_enable ~= "1" and wifi2_enable ~= "1" and phycount > 1 then html.print("WAN Wifi Client band