From c63e369d57cb6862a8890c7b2ee1b6b449b2c42d Mon Sep 17 00:00:00 2001
From: Gabor Juhos <juhosg@openwrt.org> Date: Mon, 5 Dec 2011 14:36:34 +0100 Subject: [PATCH] libs/sys: read model name from /tmp/sysinfo/model if present Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
This commit is contained in:
parent
e046455389
commit
f6ee6322f9
1 changed files with 1 additions and 0 deletions
|
@ -183,6 +183,7 @@ function sysinfo()
|
|||
cpuinfo:match("model name\t+: ([^\n]+)")
|
||||
|
||||
local model =
|
||||
luci.util.pcdata(fs.readfile("/tmp/sysinfo/model")) or
|
||||
cpuinfo:match("machine\t+: ([^\n]+)") or
|
||||
cpuinfo:match("Hardware\t+: ([^\n]+)") or
|
||||
luci.util.pcdata(fs.readfile("/proc/diag/model")) or
|
||||
|
|
Loading…
Reference in a new issue