diff options
author | Steven Barth <steven@midlink.org> | 2008-11-12 18:05:43 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-11-12 18:05:43 +0000 |
commit | 20fc751ecae788c8a0913a3456e1b102f9aa5aba (patch) | |
tree | 283d23d5941e7abf5a8bbf21d867d93d68ddf569 /libs/sys/luasrc/sys.lua | |
parent | d22a13210a8a9388261868d0ed802b28a34ef4ba (diff) |
Detect IXP4xx processors correctly
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 2332cebd83..413aa4c11f 100644 --- 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 |