git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4ca6f02
)
mini: Force network interface to not be removable
author
Steven Barth
<redacted>
Thu, 28 Aug 2008 19:33:17 +0000
(19:33 +0000)
committer
Steven Barth
<redacted>
Thu, 28 Aug 2008 19:33:17 +0000
(19:33 +0000)
modules/admin-mini/luasrc/model/cbi/mini/network.lua
patch
|
blob
|
history
diff --git
a/modules/admin-mini/luasrc/model/cbi/mini/network.lua
b/modules/admin-mini/luasrc/model/cbi/mini/network.lua
index 4289f35a92a04ac82a4af3f22f9d59fc7b6e20f9..e4dd2caec28692bd2ceaa96c6f5e5159b4483528 100644
(file)
--- 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"))
git clone https://git.99rst.org/PROJECT