Backported WiFi configuration: "override section validation if we create a new network on demand"

This commit is contained in:
Steven Barth 2008-09-13 09:09:55 +00:00
parent 078e6212d3
commit c41f8343d9

View file

@ -119,6 +119,9 @@ luci.tools.webadmin.cbi_add_networks(network)
function network.write(self, section, value)
if not m.uci:get("network", value) then
-- avoid "value not defined in enum" because network is not known yet
s.override_scheme = true
m:chain("network")
m.uci:set("network", value, "interface")
Value.write(self, section, value)