aboutsummaryrefslogtreecommitdiffstats
path: root/mageia/network-scripts/ifdown.d/vpn
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-07-31 13:34:44 +0200
committerOlav Vitters <olav@vitters.nl>2020-07-31 13:34:44 +0200
commit6a119d8d077c62db5a521ce1742ad3250aa4e886 (patch)
tree31ef64589133d3cd2c102ea09398f8f55a5f6e53 /mageia/network-scripts/ifdown.d/vpn
parent559146d86096ba0f779bfd102639d602b2e81a1a (diff)
downloadinitscripts-6a119d8d077c62db5a521ce1742ad3250aa4e886.tar
initscripts-6a119d8d077c62db5a521ce1742ad3250aa4e886.tar.gz
initscripts-6a119d8d077c62db5a521ce1742ad3250aa4e886.tar.bz2
initscripts-6a119d8d077c62db5a521ce1742ad3250aa4e886.tar.xz
initscripts-6a119d8d077c62db5a521ce1742ad3250aa4e886.zip
vpn: use same directory layout as Makefile used to generate, part 1
Diffstat (limited to 'mageia/network-scripts/ifdown.d/vpn')
-rwxr-xr-xmageia/network-scripts/ifdown.d/vpn8
1 files changed, 8 insertions, 0 deletions
diff --git a/mageia/network-scripts/ifdown.d/vpn b/mageia/network-scripts/ifdown.d/vpn
new file mode 100755
index 00000000..466e54fd
--- /dev/null
+++ b/mageia/network-scripts/ifdown.d/vpn
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then
+ . /etc/sysconfig/network-scripts/ifcfg-$1
+ if [ -n "$VPN_TYPE" ] && [ -n "$VPN_NAME" ]; then
+ /usr/sbin/vpn-stop $VPN_TYPE $VPN_NAME
+ fi
+fi