projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68b51e1
)
libs/sys: fix call to nixio.uname()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 12 Feb 2011 19:39:30 +0000
(19:39 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 12 Feb 2011 19:39:30 +0000
(19:39 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index 722d5a381da148445a5340bb7b7a18b0d27daefb..2819c338e771125deecfad0268c3ee134089ae2d 100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-186,7
+186,7
@@
function sysinfo()
cpuinfo:match("machine\t+: ([^\n]+)") or
cpuinfo:match("Hardware\t+: ([^\n]+)") or
fs.readfile("/proc/diag/model") or
- nixio.uname().machine
()
or
+ nixio.uname().machine or
system
return system, model, memtotal, memcached, membuffers, memfree, bogomips