diff options
Diffstat (limited to 'modules/luci-mod-network/luasrc')
-rw-r--r-- | modules/luci-mod-network/luasrc/controller/admin/network.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/luci-mod-network/luasrc/controller/admin/network.lua b/modules/luci-mod-network/luasrc/controller/admin/network.lua index 49ed78a0ea..a2ff215480 100644 --- a/modules/luci-mod-network/luasrc/controller/admin/network.lua +++ b/modules/luci-mod-network/luasrc/controller/admin/network.lua @@ -36,9 +36,6 @@ function index() end - page = entry({"admin", "network", "iface_reconnect"}, post("iface_reconnect"), nil) - page.leaf = true - page = entry({"admin", "network", "iface_down"}, post("iface_down"), nil) page.leaf = true @@ -86,19 +83,6 @@ function index() -- end end -function iface_reconnect(iface) - local netmd = require "luci.model.network".init() - local net = netmd:get_network(iface) - if net then - luci.sys.call("env -i /sbin/ifup %s >/dev/null 2>/dev/null" - % luci.util.shellquote(iface)) - luci.http.status(200, "Reconnected") - return - end - - luci.http.status(404, "No such interface") -end - local function addr2dev(addr, src) local ip = require "luci.ip" local route = ip.route(addr, src) |