luci-0.10: merge r8045
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Dec 2011 16:40:25 +0000 (16:40 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Dec 2011 16:40:25 +0000 (16:40 +0000)
libs/sys/luasrc/sys.lua

index f9b253e..9c30f55 100644 (file)
@@ -183,6 +183,7 @@ function sysinfo()
                cpuinfo:match("model name\t+: ([^\n]+)")
 
        local model =
+               luci.util.pcdata(fs.readfile("/tmp/sysinfo/model")) or
                cpuinfo:match("machine\t+: ([^\n]+)") or
                cpuinfo:match("Hardware\t+: ([^\n]+)") or
                luci.util.pcdata(fs.readfile("/proc/diag/model")) or