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 2332ceb..413aa4c 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