modules/admin-full, modules/admin-mini: prevent addremove in system page
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_system / system.lua
index 1d35dee..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.addremove = false
 
 local system, model, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo()
 local uptime = luci.sys.uptime()
@@ -40,6 +41,7 @@ s:option(DummyValue, "_memtotal", translate("m_i_memory")).value =
   tostring(translate("mem_buffered", "")),
   100 * memfree / memtotal,
   tostring(translate("mem_free", ""))
+)
 
 s:option(DummyValue, "_systime", translate("m_i_systemtime")).value =
  os.date("%c")