diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-27 17:53:52 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-27 17:53:52 +0000 |
commit | 71e58913546a4d4babb18fd73415e758f92685fb (patch) | |
tree | f008cfa48d54728dcc9194581b2cf4e945178d24 | |
parent | 30f881974cd25ff5b430545db7152cab021e9cd6 (diff) |
modules/admin-full, modules/admin-mini: prevent addremove in system page
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 1 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/system.lua | 2 |
2 files changed, 2 insertions, 1 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 da51b452d..c37e72629 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua @@ -20,6 +20,7 @@ m = Map("system", translate("system"), translate("a_s_desc")) s = m:section(TypedSection, "system", "") s.anonymous = true +s.addremove = false local system, model, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo() local uptime = luci.sys.uptime() diff --git a/modules/admin-mini/luasrc/model/cbi/mini/system.lua b/modules/admin-mini/luasrc/model/cbi/mini/system.lua index 4e7f9568b..90ee79083 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/system.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/system.lua @@ -21,7 +21,7 @@ m = Map("system", translate("system"), translate("a_s_desc")) s = m:section(TypedSection, "system", "") s.anonymous = true - +s.addremove = false local system, model, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo() |