From 8ba4babb91510aa5473929fc9aa28a4e271301cd Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 7 Sep 2011 14:09:53 +0200 Subject: [PATCH] openvpn-n2n: start/stop at connect/disconnect. --- config/rootfiles/core/next/filelists/files | 3 ++- src/initscripts/init.d/networking/red.down/10-ovpn | 1 + src/initscripts/init.d/networking/red.up/50-ovpn | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/next/filelists/files b/config/rootfiles/core/next/filelists/files index 9b3987969d..1f432042d6 100644 --- a/config/rootfiles/core/next/filelists/files +++ b/config/rootfiles/core/next/filelists/files @@ -4,7 +4,8 @@ etc/sysctl.conf etc/system-release etc/issue etc/iproute2/rt_tables -etc/rc.d/init.d/networking/red +etc/rc.d/init.d/networking/red.up/50-ovpn +etc/rc.d/init.d/networking/red.down/10-ovpn srv/web/ipfire/cgi-bin/extrahd.cgi srv/web/ipfire/cgi-bin/index.cgi srv/web/ipfire/cgi-bin/outgoinggrp.cgi diff --git a/src/initscripts/init.d/networking/red.down/10-ovpn b/src/initscripts/init.d/networking/red.down/10-ovpn index 59e95addf4..948d7b276a 100644 --- a/src/initscripts/init.d/networking/red.down/10-ovpn +++ b/src/initscripts/init.d/networking/red.down/10-ovpn @@ -1,5 +1,6 @@ #!/bin/bash /usr/local/bin/openvpnctrl -k & +/usr/local/bin/openvpnctrl -kn2n & exit 0 diff --git a/src/initscripts/init.d/networking/red.up/50-ovpn b/src/initscripts/init.d/networking/red.up/50-ovpn index a53b9207c8..f3db648bc1 100644 --- a/src/initscripts/init.d/networking/red.up/50-ovpn +++ b/src/initscripts/init.d/networking/red.up/50-ovpn @@ -1,5 +1,6 @@ #!/bin/bash /usr/local/bin/openvpnctrl -s > /dev/null 2>&1 +/usr/local/bin/openvpnctrl -sn2n > /dev/null 2>&1 exit 0 -- 2.39.2