From 1e0e458ff3a2ab0ff9b415c5b2ae1a4977aa1463 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 6 Jan 2012 16:28:54 +0000 Subject: modules/admin-full: fix wireless interface removal if not network was assigned to the iface, thanks Viktar Palstsiuk --- modules/admin-full/luasrc/controller/admin/network.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/admin-full/luasrc/controller') diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index a298443645..5a102668df 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 -- cgit v1.2.3