diff options
-rw-r--r-- | libs/sys/luasrc/sys.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index f9b253e764..9c30f55f6c 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -183,6 +183,7 @@ function sysinfo() cpuinfo:match("model name\t+: ([^\n]+)") local model = + luci.util.pcdata(fs.readfile("/tmp/sysinfo/model")) or cpuinfo:match("machine\t+: ([^\n]+)") or cpuinfo:match("Hardware\t+: ([^\n]+)") or luci.util.pcdata(fs.readfile("/proc/diag/model")) or |