diff options
author | Vladimir Ulrich <admin@evl.su> | 2014-07-18 19:39:09 +0400 |
---|---|---|
committer | Vladimir Ulrich <admin@evl.su> | 2014-10-10 19:59:35 +0400 |
commit | c33af582f0764758050cad14c2f61eba67bb3bea (patch) | |
tree | 0f27767ef6b99771856e9b1e175e07181a764e59 /modules | |
parent | 01541f8c7f0e9b2fdbc42f47b788b3038c29d937 (diff) |
Added device tree model support
Signed-off-by: Vladimir Ulrich <admin@evl.su>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/base/luasrc/sys.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/base/luasrc/sys.lua b/modules/base/luasrc/sys.lua index df6280dda..3a04f6bad 100644 --- a/modules/base/luasrc/sys.lua +++ b/modules/base/luasrc/sys.lua @@ -186,6 +186,7 @@ function sysinfo() cpuinfo:match("model name\t+: ([^\n]+)") local model = + fs.readfile("/proc/device-tree/model") or luci.util.pcdata(fs.readfile("/tmp/sysinfo/model")) or cpuinfo:match("machine\t+: ([^\n]+)") or cpuinfo:match("Hardware\t+: ([^\n]+)") or |