From 20fc751ecae788c8a0913a3456e1b102f9aa5aba Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 12 Nov 2008 18:05:43 +0000 Subject: [PATCH] Detect IXP4xx processors correctly --- libs/sys/luasrc/sys.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 2332cebd8..413aa4c11 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 -- 2.25.1