From: Steven Barth Date: Wed, 12 Nov 2008 18:06:21 +0000 (+0000) Subject: Detect IXP4xx processors correctly X-Git-Tag: 0.8.2~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e861e7bffc2240cef02047fbef83a20027a7b18e;p=oweals%2Fluci.git Detect IXP4xx processors correctly --- 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