summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller/admin/network.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin/network.lua')
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index 73efc35b0..1260f20c7 100644
--- a/modules/admin-full/luasrc/controller/admin/network.lua
+++ b/modules/admin-full/luasrc/controller/admin/network.lua
@@ -280,6 +280,12 @@ function iface_reconnect()
end
luci.sys.call("env -i /sbin/ifup %q >/dev/null 2>/dev/null" % iface)
+
+ require "luci.fs"
+ if luci.fs.access("/etc/config/radvd") then
+ luci.sys.call("/etc/init.d/radvd restart >/dev/null 2>/dev/null")
+ end
+
luci.http.status(200, "Reconnected")
return
end