projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8e3348
)
luci-0.10: merge r8045
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 5 Dec 2011 16:40:25 +0000
(16:40 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 5 Dec 2011 16:40:25 +0000
(16:40 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index f9b253e764c7063b52a72e91a1fa23c87087f33e..9c30f55f6cf167cf58e9eb9ccc9a012449b229e9 100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-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