Added device tree model support
Signed-off-by: Vladimir Ulrich <admin@evl.su>
This commit is contained in:
parent
01541f8c7f
commit
c33af582f0
1 changed files with 1 additions and 0 deletions
|
@ -186,6 +186,7 @@ function sysinfo()
|
||||||
cpuinfo:match("model name\t+: ([^\n]+)")
|
cpuinfo:match("model name\t+: ([^\n]+)")
|
||||||
|
|
||||||
local model =
|
local model =
|
||||||
|
fs.readfile("/proc/device-tree/model") or
|
||||||
luci.util.pcdata(fs.readfile("/tmp/sysinfo/model")) or
|
luci.util.pcdata(fs.readfile("/tmp/sysinfo/model")) or
|
||||||
cpuinfo:match("machine\t+: ([^\n]+)") or
|
cpuinfo:match("machine\t+: ([^\n]+)") or
|
||||||
cpuinfo:match("Hardware\t+: ([^\n]+)") or
|
cpuinfo:match("Hardware\t+: ([^\n]+)") or
|
||||||
|
|
Loading…
Reference in a new issue