libs/sys: fix call to nixio.uname()
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 12 Feb 2011 19:39:30 +0000 (19:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 12 Feb 2011 19:39:30 +0000 (19:39 +0000)
libs/sys/luasrc/sys.lua

index 722d5a3..2819c33 100644 (file)
@@ -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