mini: Force network interface to not be removable
This commit is contained in:
parent
4ca6f02af2
commit
3dea61aaa3
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
s = m:section(NamedSection, "lan", "interface", translate("m_n_local"))
|
s = m:section(NamedSection, "lan", "interface", translate("m_n_local"))
|
||||||
|
s.addremove = false
|
||||||
s:option(Value, "ipaddr", translate("ipaddress"))
|
s:option(Value, "ipaddr", translate("ipaddress"))
|
||||||
|
|
||||||
nm = s:option(Value, "netmask", translate("netmask"))
|
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 = m:section(NamedSection, "wan", "interface", translate("m_n_inet"))
|
||||||
|
s.addremove = false
|
||||||
p = s:option(ListValue, "proto", translate("protocol"))
|
p = s:option(ListValue, "proto", translate("protocol"))
|
||||||
p:value("none", "disabled")
|
p:value("none", "disabled")
|
||||||
p:value("static", translate("manual", "manual"))
|
p:value("static", translate("manual", "manual"))
|
||||||
|
|
Loading…
Reference in a new issue