summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-25 23:08:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-25 23:08:47 +0000
commit730b2b0d07bfa2c8aeeb8877aaf2444e5ccbc7a4 (patch)
tree6b3b81bbbc950c05a39e14caa790c3b5db9b1dde /modules/admin-full/luasrc/controller
parent8eb93354138685a83a3ae9994be770ceb63bf9fe (diff)
modules/admin-full: ... and another issue, also remove wifi up workaround, its done by "ifup" now
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index d151a9a59..d76f83ffb 100644
--- a/modules/admin-full/luasrc/controller/admin/network.lua
+++ b/modules/admin-full/luasrc/controller/admin/network.lua
@@ -282,23 +282,6 @@ function iface_reconnect()
local net = netmd:get_network(iface)
if net then
- local ifn
- for _, ifn in ipairs(net:get_interfaces()) do
- local wnet = ifn:get_wifinet()
- if wnet then
- local wdev = wnet:get_device()
- if wdev then
- luci.sys.call(
- "env -i /sbin/wifi up %q >/dev/null 2>/dev/null"
- % wdev:name()
- )
-
- luci.http.status(200, "Reconnected")
- return
- end
- end
- end
-
luci.sys.call("env -i /sbin/ifup %q >/dev/null 2>/dev/null" % iface)
luci.http.status(200, "Reconnected")
return