Backported WiFi configuration: "override section validation if we create a new network on demand"
This commit is contained in:
parent
078e6212d3
commit
c41f8343d9
1 changed files with 33 additions and 30 deletions
|
@ -119,6 +119,9 @@ luci.tools.webadmin.cbi_add_networks(network)
|
||||||
|
|
||||||
function network.write(self, section, value)
|
function network.write(self, section, value)
|
||||||
if not m.uci:get("network", value) then
|
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:chain("network")
|
||||||
m.uci:set("network", value, "interface")
|
m.uci:set("network", value, "interface")
|
||||||
Value.write(self, section, value)
|
Value.write(self, section, value)
|
||||||
|
|
Loading…
Reference in a new issue