libs/sys: Filter model string from /proc/diag/model
This commit is contained in:
parent
9215f16c9f
commit
58d319ea5f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue