Detect IXP4xx processors correctly

This commit is contained in:
Steven Barth 2008-11-12 18:05:43 +00:00
parent d22a13210a
commit 20fc751eca

View file

@ -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