#!/usr/bin/lua
--[[
Part of AREDN -- Used for creating Amateur Radio Emergency Data Networks
Copyright (C) 2021 Tim Wilkinson
Original Perl Copyright (C) 2015 Conrad Lara
Original Perl Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
See Contributors file for additional contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
") html.print(" node: " .. node) html.print("model: " .. aredn.hardware.get_board_id()) html.print("") if not aredn.hardware.supported() then html.print("!!!! UNSUPPORTED DEVICE !!!!") html.print("boardid: " .. aredn.hardware.get_board_id()) html.print("") end local f = io.popen("ifconfig -a") if f then for line in f:lines() do local a, b = line:match("^(%S+) .*HWaddr (%S+)") if b then html.print(string.format("%-6s %s", a, b)) end end f:close() end html.print("") html.print("/proc/cpuinfo") html.print(read_all("/proc/cpuinfo")) html.print("nvram") html.print(capture("uci -c /etc/local/uci show 2>&1")) html.print("") html.footer() html.print("