Detect IXP4xx processors correctly
authorSteven Barth <steven@midlink.org>
Wed, 12 Nov 2008 18:05:43 +0000 (18:05 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 12 Nov 2008 18:05:43 +0000 (18:05 +0000)
libs/sys/luasrc/sys.lua

index 2332cebd837e47bb369206cc788605621e111773..413aa4c11f57f57838c9688ba12827cd85ea0717 100644 (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