From: Vladimir Ulrich Date: Fri, 18 Jul 2014 15:39:09 +0000 (+0400) Subject: Added device tree model support X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c33af582f0764758050cad14c2f61eba67bb3bea;p=oweals%2Fluci.git Added device tree model support Signed-off-by: Vladimir Ulrich --- 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