From 8dc74c117f4c5bf72a4157aba961a15822c6d061 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Mon, 13 Jun 2022 13:50:47 -0700 Subject: [PATCH] Fix display of unknown radio model --- files/www/cgi-bin/status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/www/cgi-bin/status b/files/www/cgi-bin/status index a4112652..71d5510c 100755 --- a/files/www/cgi-bin/status +++ b/files/www/cgi-bin/status @@ -360,7 +360,7 @@ if config == "mesh" and not wifi_disabled then col2[#col2] = col2[#col2] .. "   " end -col2[#col2 + 1] = "firmware version
model" .. read_all("/etc/mesh-release") .. "
" .. aredn.hardware.get_radio().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)