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:
15e7639
)
* luci/admin-full: fixed bug that prevented creation of interface sections in dhcp...
author
Jo-Philipp Wich
<redacted>
Mon, 4 Aug 2008 23:12:14 +0000
(23:12 +0000)
committer
Jo-Philipp Wich
<redacted>
Mon, 4 Aug 2008 23:12:14 +0000
(23:12 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
index e9ab6c93d7d5aea7ba0d440fa455ece7b401dafc..7a4b3c1343338a3b07b04660e3c0c2e32aaebbe1 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
@@
-24,6
+24,7
@@
iface = s:option(ListValue, "interface", translate("interface"))
luci.model.uci.foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
+ iface.default = iface.default or section[".name"]
iface:value(section[".name"])
s:depends("interface", section[".name"])
end
@@
-61,4
+62,4
@@
s:option(Value, "macaddr", translate("macaddress"))
s:option(Value, "ipaddr", translate("ipaddress"))
-return m, m2
\ No newline at end of file
+return m, m2
git clone https://git.99rst.org/PROJECT