From 07ad0dfc376f1593a9358df4d5df2a513a2a0562 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 5 Dec 2011 16:40:25 +0000 Subject: [PATCH] luci-0.10: merge r8045 --- libs/sys/luasrc/sys.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index f9b253e76..9c30f55f6 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 -- 2.25.1