libs/sys: Filter model string from /proc/diag/model

This commit is contained in:
Manuel Munz 2011-02-14 18:54:00 +00:00
parent 9215f16c9f
commit 58d319ea5f

View file

@ -185,7 +185,7 @@ function sysinfo()
local model = local model =
cpuinfo:match("machine\t+: ([^\n]+)") or cpuinfo:match("machine\t+: ([^\n]+)") or
cpuinfo:match("Hardware\t+: ([^\n]+)") or cpuinfo:match("Hardware\t+: ([^\n]+)") or
fs.readfile("/proc/diag/model") or luci.util.pcdata(fs.readfile("/proc/diag/model")) or
nixio.uname().machine or nixio.uname().machine or
system system