From e861e7bffc2240cef02047fbef83a20027a7b18e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 12 Nov 2008 18:06:21 +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