summaryrefslogtreecommitdiff
path: root/debian/openvpn.if-down.d
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2011-12-13 11:04:22 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2012-02-21 15:53:41 +0100
commit3cedd1dd9877a0bae3e69d27c3d1a2fcd98787c0 (patch)
treea1af6e31567b9a7a992bc90d6106a7cfb0c67b37 /debian/openvpn.if-down.d
parent349cfa7acb95abe865209a28e417ec74b56f9bba (diff)
Imported Debian patch 2.2.1-1debian/2.2.1-1
Diffstat (limited to 'debian/openvpn.if-down.d')
-rw-r--r--debian/openvpn.if-down.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/openvpn.if-down.d b/debian/openvpn.if-down.d
new file mode 100644
index 0000000..4610786
--- /dev/null
+++ b/debian/openvpn.if-down.d
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+OPENVPN=/etc/init.d/openvpn
+
+if [ ! -x $OPENVPN ]; then
+ exit 0
+fi
+
+if [ -n "$IF_OPENVPN" ]; then
+ for vpn in $IF_OPENVPN; do
+ $OPENVPN stop $vpn
+ done
+fi