Added device tree model support
[project/luci.git] / modules / base / luasrc / sys.lua
index df6280d..3a04f6b 100644 (file)
@@ -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