diff options
author | Steven Barth <steven@midlink.org> | 2008-08-28 19:33:17 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-28 19:33:17 +0000 |
commit | 3dea61aaa3c4c090debf09b2bd5ac2c81a6c6fa3 (patch) | |
tree | ea5c4b78505f37151dd32b48388bf8509b6241bf /modules/admin-mini/luasrc | |
parent | 4ca6f02af21d968e7da2018515f41cee4e4efd3f (diff) |
mini: Force network interface to not be removable
Diffstat (limited to 'modules/admin-mini/luasrc')
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/network.lua b/modules/admin-mini/luasrc/model/cbi/mini/network.lua index 4289f35a92..e4dd2caec2 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/network.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/network.lua @@ -78,6 +78,7 @@ end s = m:section(NamedSection, "lan", "interface", translate("m_n_local")) +s.addremove = false s:option(Value, "ipaddr", translate("ipaddress")) nm = s:option(Value, "netmask", translate("netmask")) @@ -92,6 +93,7 @@ dns.rmempty = true s = m:section(NamedSection, "wan", "interface", translate("m_n_inet")) +s.addremove = false p = s:option(ListValue, "proto", translate("protocol")) p:value("none", "disabled") p:value("static", translate("manual", "manual")) |