projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c61cfb3
)
Detect IXP4xx processors correctly
author
Steven Barth
<steven@midlink.org>
Wed, 12 Nov 2008 18:06:21 +0000
(18:06 +0000)
committer
Steven Barth
<steven@midlink.org>
Wed, 12 Nov 2008 18:06:21 +0000
(18:06 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index 2332cebd837e47bb369206cc788605621e111773..413aa4c11f57f57838c9688ba12827cd85ea0717 100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-188,6
+188,9
@@
function sysinfo()
if not system then
system = posix.uname("%m")
model = cpuinfo:match("model name.-:%s*([^\n]+)")
+ if not model then
+ model = cpuinfo:match("Processor.-:%s*([^\n]+)")
+ end
else
model = cpuinfo:match("cpu model.-:%s*([^\n]+)")
end