summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-02-14 18:54:00 +0000
committerManuel Munz <freifunk@somakoma.de>2011-02-14 18:54:00 +0000
commit58d319ea5ffa27bb949c1b70b9d845804a3ece33 (patch)
treed797b28f6e69f45c8d77a87089566b2407d8b371 /libs
parent9215f16c9f8277ca47a5c9976f0c253f756ff446 (diff)
libs/sys: Filter model string from /proc/diag/model
Diffstat (limited to 'libs')
-rw-r--r--libs/sys/luasrc/sys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua
index 2bdc15ecb9..8b05d44d8d 100644
--- a/libs/sys/luasrc/sys.lua
+++ b/libs/sys/luasrc/sys.lua
@@ -185,7 +185,7 @@ function sysinfo()
local model =
cpuinfo:match("machine\t+: ([^\n]+)") or
cpuinfo:match("Hardware\t+: ([^\n]+)") or
- fs.readfile("/proc/diag/model") or
+ luci.util.pcdata(fs.readfile("/proc/diag/model")) or
nixio.uname().machine or
system