diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-02-14 18:54:00 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-02-14 18:54:00 +0000 |
commit | 58d319ea5ffa27bb949c1b70b9d845804a3ece33 (patch) | |
tree | d797b28f6e69f45c8d77a87089566b2407d8b371 /libs/sys/luasrc | |
parent | 9215f16c9f8277ca47a5c9976f0c253f756ff446 (diff) |
libs/sys: Filter model string from /proc/diag/model
Diffstat (limited to 'libs/sys/luasrc')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 2bdc15ecb..8b05d44d8 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 |