From 9fa385a7eca04165557422abed78a23c678381b5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 5 Dec 2011 19:34:47 +0000 Subject: [PATCH] modules/admin-full: fix removal of wireless networks if radio is disabled --- modules/admin-full/luasrc/controller/admin/network.lua | 4 ++-- 1 file 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 -- 2.30.2