From 02a67572f8cbbcbbea7be0b5d4f8125415d896bc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 21 Feb 2011 12:46:03 +0000 Subject: modules/admin-full: restart radvd if needed --- modules/admin-full/luasrc/controller/admin/network.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/admin-full/luasrc/controller') diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 73efc35b03..1260f20c75 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 -- cgit v1.2.3