summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-05 19:34:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-05 19:34:47 +0000
commit9fa385a7eca04165557422abed78a23c678381b5 (patch)
tree91bde1dfc76ecd723b444ff3b3573b063fa4c499 /modules/admin-full/luasrc/controller
parent2221b44d98cb3f80d65d4be5d1a83b3b024bace8 (diff)
modules/admin-full: fix removal of wireless networks if radio is disabled
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index 24f17e9397..a298443645 100644
--- 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