summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-10 23:08:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-10 23:08:10 +0000
commit84c6b17d78c5cfab8977b4037b717cadde99b4de (patch)
tree845c2878ce6c0e276c0be5889b06be08f4018322 /modules/admin-full/luasrc/model/cbi
parentf43cdc0e357382e74ebf824e3d0b032e2e658d52 (diff)
modules/admin-full: display kernel version
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/system.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
index f3c5a01430..7851f05ada 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
@@ -38,6 +38,9 @@ local uptime = luci.sys.uptime()
s:option(DummyValue, "_system", translate("System")).value = system
s:option(DummyValue, "_cpu", translate("Processor")).value = model
+s:option(DummyValue, "_kernel", translate("Kernel")).value =
+ luci.util.exec("uname -r") or "?"
+
local load1, load5, load15 = luci.sys.loadavg()
s:option(DummyValue, "_la", translate("Load")).value =
string.format("%.2f, %.2f, %.2f", load1, load5, load15)