modules/admin-full: fix wireless interface removal if not network was assigned to the iface, thanks Viktar Palstsiuk <viktar.palstsiuk@promwad.com>
This commit is contained in:
parent
862176ee07
commit
1e0e458ff3
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ function wifi_delete(network)
|
||||||
luci.sys.call("env -i /sbin/wifi down %q >/dev/null" % dev:name())
|
luci.sys.call("env -i /sbin/wifi down %q >/dev/null" % dev:name())
|
||||||
ntm:del_wifinet(network)
|
ntm:del_wifinet(network)
|
||||||
ntm:commit("wireless")
|
ntm:commit("wireless")
|
||||||
if net:is_empty() then
|
if net and net:is_empty() then
|
||||||
ntm:del_network(net:name())
|
ntm:del_network(net:name())
|
||||||
ntm:commit("network")
|
ntm:commit("network")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue