")
html.print("
This device can be configured to either permit or prohibit known encrypted traffic on its RF link. It is up to the user to decide which is appropriate based on how it will be used and the license under which it will be operated. These rules vary by country, frequency, and intended use. You are encouraged to read and understand these rules before going further.
")
html.print("
This device is pre-configured with no restrictions as to the type of data being passed.
")
html.print("
Follow these steps if you wish to prohibit known encrypted traffic on the RF link. These instructions will disappear, so copy them for your reference:
")
@@ -311,9 +311,9 @@ local col2 = {}
local ip = cursor:get("network", "wifi", "ipaddr")
local cidr = netmask_to_cidr(cursor:get("network", "wifi", "netmask"))
if wifi_disabled then
- col1[#col1 + 1] = "
Primary address | " .. ip .. " / " .. cidr .. " "
+ col1[#col1 + 1] = " | primary address: | " .. ip .. " / " .. cidr .. " "
else
- col1[#col1 + 1] = " | Wifi address | " .. ip .. " / " .. cidr .. " "
+ col1[#col1 + 1] = " | mesh RF address: SSID: channel: channel width: | " .. ip .. " / " .. cidr .. " " .. wifi_ssid .. " " .. wifi_channel .. " " .. wifi_chanbw .. " MHz | "
end
ip = cursor:get("network", "lan", "ipaddr")
@@ -333,7 +333,7 @@ end
if ip:match("^10%.") or not hide_local then
cidr = netmask_to_cidr(mask)
- col1[#col1 + 1] = "
LAN address | " .. ip .. " / " .. cidr .. " "
+ col1[#col1 + 1] = " | LAN address: | " .. ip .. " / " .. cidr .. " "
end
local wan_iface = aredn.hardware.get_iface_name("wan")
@@ -345,15 +345,15 @@ if not hide_local and wan_iface then
end
if ip then
cidr = netmask_to_cidr(mask)
- col1[#col1 + 1] = " | " .. wprefix .. "WAN address | " .. ip .. " / " .. cidr .. " "
+ col1[#col1 + 1] = " | " .. wprefix .. "WAN address: | " .. ip .. " / " .. cidr .. " "
else
- col1[#col1 + 1] = " | " .. wprefix .. "WAN address | none "
+ col1[#col1 + 1] = " | " .. wprefix .. "WAN address: | none "
end
end
ip = get_default_gw()
if ip:match("^10%.") or not hide_local then
- col1[#col1 + 1] = " | default gateway | " .. ip
+ col1[#col1 + 1] = " | default gateway: | " .. ip
if ip:match("^10%.") then
col1[#col1] = col1[#col1] .. " " .. mesh_ip_to_hostnames(ip) .. ""
end
@@ -361,29 +361,24 @@ if ip:match("^10%.") or not hide_local then
end
if browser_ip then
- col1[#col1 + 1] = " | your address | " .. browser_ip .. " " .. mesh_ip_to_hostnames(browser_ip) .. " | "
+ col1[#col1 + 1] = "
your address: | " .. browser_ip .. " " .. mesh_ip_to_hostnames(browser_ip) .. " | "
end
-if not wifi_disabled then
- col1[#col1 + 1] = "
SSID | " .. wifi_ssid .. " | "
- col1[#col1 + 1] = "
Channel | " .. wifi_channel .. " | "
- col1[#col1 + 1] = "
Bandwidth | " .. wifi_chanbw .. " MHz | "
-end
-- right column - system info
if config == "mesh" and not wifi_disabled then
- col2[#col2 + 1] = "
Signal/Noise/Ratio | "
+ col2[#col2 + 1] = "signal / noise / ratio: | "
local s, n = get_wifi_signal(wifi_iface)
if s == "N/A" then
- col2[#col2] = col2[#col2] .. "N/A"
+ col2[#col2] = col2[#col2] .. "no RF links"
else
col2[#col2] = col2[#col2] .. "" .. s .. " / " .. n .. " / " .. math.abs(s - n) .. " dB"
+ col2[#col2] = col2[#col2] .. " | "
end
- col2[#col2] = col2[#col2] .. " | "
end
-col2[#col2 + 1] = "
firmware version model | " .. read_all("/etc/mesh-release") .. " " .. (aredn.hardware.get_radio() or { name = "unknown" }).name .. " | ";
+col2[#col2 + 1] = "
firmware version: model: | " .. read_all("/etc/mesh-release") .. " " .. (aredn.hardware.get_radio() or { name = "unknown" }).name .. " | "
local sysinfo = nixio.sysinfo()
local uptime = string.format("%d:%02d", math.floor(sysinfo.uptime / 3600) % 24, math.floor(sysinfo.uptime / 60) % 60)
@@ -392,7 +387,7 @@ if sysinfo.uptime >= 172800 then
elseif sysinfo.uptime >= 86400 then
uptime = "1 day, " .. uptime
end
-col2[#col2 + 1] = "
system time uptime | " .. os.date("%a %b %e %Y") .. " " .. os.date("%T %Z") .. " " .. uptime .. " | ";
+col2[#col2 + 1] = "
system time: uptime: | " .. os.date("%a %b %e %Y") .. " " .. os.date("%T %Z") .. " " .. uptime .. " | "
local vfs = nixio.fs.statvfs("/overlay")
local fspace = vfs.bfree * vfs.bsize / 1024
@@ -414,8 +409,8 @@ else
rspace = rspace .. " KB"
end
-col2[#col2 + 1] = "
load average available space | " .. string.format("%.2f, %.2f, %.2f", sysinfo.loads[1], sysinfo.loads[2], sysinfo.loads[3]) .. " flash = " .. fspace .. " memory = " .. rspace .. " | ";
-col2[#col2 + 1] = "
Host Entries | Total = " .. host_total .. " Nodes = " .. host_nodes .. " | "
+col2[#col2 + 1] = "
load average: available space: | " .. string.format("%.2f, %.2f, %.2f", sysinfo.loads[1], sysinfo.loads[2], sysinfo.loads[3]) .. " flash = " .. fspace .. " memory = " .. rspace .. " | "
+col2[#col2 + 1] = "
host entries: | " .. host_nodes .. " nodes / " .. host_total .. " total devices | "
-- now print the tables