* Fixed DHCP configuration for devices without WAN interface

* Made interface selector for route configuration a ListValue
This commit is contained in:
Steven Barth 2008-05-01 12:33:27 +00:00
parent 1c88249082
commit b2f9325073
2 changed files with 7 additions and 1 deletions

View file

@ -13,6 +13,7 @@ iface = s:option(ListValue, "interface", "Schnittstelle")
for k, v in pairs(ffluci.model.uci.show("network").network) do
if v[".type"] == "interface" and k ~= "loopback" then
iface:value(k)
s:depends("interface", k) -- Only change sections with existing interfaces
end
end

View file

@ -7,7 +7,12 @@ s = m:section(TypedSection, "route")
s.addremove = true
s.anonymous = true
s:option(Value, "interface", "Schnittstelle")
iface = s:option(ListValue, "interface", "Schnittstelle")
for k, v in pairs(ffluci.model.uci.show("network").network) do
if v[".type"] == "interface" and k ~= "loopback" then
iface:value(k)
end
end
s:option(Value, "target", "Ziel", "Host-IP oder Netzwerk")