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:
2221b44
)
modules/admin-full: fix removal of wireless networks if radio is disabled
author
Jo-Philipp Wich
<redacted>
Mon, 5 Dec 2011 19:34:47 +0000
(19:34 +0000)
committer
Jo-Philipp Wich
<redacted>
Mon, 5 Dec 2011 19:34:47 +0000
(19:34 +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 24f17e9397bd3abeeeedcfb5a7fd55ab00b3de71..a298443645fea616d5351aab572411cb2bdc06fa 100644
(file)
--- a/
modules/admin-full/luasrc/controller/admin/network.lua
+++ b/
modules/admin-full/luasrc/controller/admin/network.lua
@@
-216,14
+216,14
@@
function wifi_delete(network)
local dev = wnet:get_device()
local net = wnet:get_network()
if dev then
- luci.sys.call("env -i /sbin/wifi down %q" % dev:name())
+ 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
ntm:del_network(net:name())
ntm:commit("network")
end
- luci.sys.call("env -i /sbin/wifi up %q" % dev:name())
+ luci.sys.call("env -i /sbin/wifi up %q
>/dev/null
" % dev:name())
end
end
git clone https://git.99rst.org/PROJECT