modules/admin-full, modules/admin-mini: prevent addremove in system page
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 27 Aug 2009 17:53:52 +0000 (17:53 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 27 Aug 2009 17:53:52 +0000 (17:53 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
modules/admin-mini/luasrc/model/cbi/mini/system.lua

index da51b45..c37e726 100644 (file)
@@ -20,6 +20,7 @@ m = Map("system", translate("system"), translate("a_s_desc"))
 
 s = m:section(TypedSection, "system", "")
 s.anonymous = true
 
 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()
 
 local system, model, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo()
 local uptime = luci.sys.uptime()
index 4e7f956..90ee790 100644 (file)
@@ -21,7 +21,7 @@ m = Map("system", translate("system"), translate("a_s_desc"))
 
 s = m:section(TypedSection, "system", "")
 s.anonymous = true
 
 s = m:section(TypedSection, "system", "")
 s.anonymous = true
-
+s.addremove = false
 
 
 local system, model, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo()
 
 
 local system, model, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo()