diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-06 16:28:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-06 16:28:54 +0000 |
commit | 1e0e458ff3a2ab0ff9b415c5b2ae1a4977aa1463 (patch) | |
tree | 7d91da6e2ebabaf8544a637c40e2a44dc51de7ce /modules/admin-full/luasrc | |
parent | 862176ee072e2a3c37e8e72a627aba6735419d05 (diff) |
modules/admin-full: fix wireless interface removal if not network was assigned to the iface, thanks Viktar Palstsiuk <viktar.palstsiuk@promwad.com>
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index a29844364..5a102668d 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -219,7 +219,7 @@ function wifi_delete(network) luci.sys.call("env -i /sbin/wifi down %q >/dev/null" % dev:name()) ntm:del_wifinet(network) ntm:commit("wireless") - if net:is_empty() then + if net and net:is_empty() then ntm:del_network(net:name()) ntm:commit("network") end |