From e88a95ca2996beabf1983159c81f168e8de9d54a Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Tue, 19 Dec 2017 09:56:03 +0100 Subject: luci-app-openvpn: run '/etc/init.d/openvpn reload' after commit Signed-off-by: Martin Schiller --- applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua index d5e0019eb..45d916d72 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua @@ -125,5 +125,8 @@ function proto.cfgvalue(self, section) return val or "udp" end +function m.on_after_commit(self,map) + require("luci.sys").call('/etc/init.d/openvpn reload') +end return m -- cgit v1.2.3