Detect IXP4xx processors correctly

This commit is contained in:
Steven Barth 2008-11-12 18:06:21 +00:00
parent c61cfb3e16
commit e861e7bffc

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