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 f9b253e764c7063b52a72e91a1fa23c87087f33e..9c30f55f6cf167cf58e9eb9ccc9a012449b229e9 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