git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
862176e
)
modules/admin-full: fix wireless interface removal if not network was assigned to...
author
Jo-Philipp Wich
<redacted>
Fri, 6 Jan 2012 16:28:54 +0000
(16:28 +0000)
committer
Jo-Philipp Wich
<redacted>
Fri, 6 Jan 2012 16:28:54 +0000
(16:28 +0000)
modules/admin-full/luasrc/controller/admin/network.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/controller/admin/network.lua
b/modules/admin-full/luasrc/controller/admin/network.lua
index a298443645fea616d5351aab572411cb2bdc06fa..5a102668df822a8463cbed87df78f2288bbbc18d 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT