diff options
author | Olav Vitters <olav@vitters.nl> | 2020-07-31 13:34:44 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-07-31 13:34:44 +0200 |
commit | 6a119d8d077c62db5a521ce1742ad3250aa4e886 (patch) | |
tree | 31ef64589133d3cd2c102ea09398f8f55a5f6e53 /mageia/network-scripts/ifdown.d/vpn | |
parent | 559146d86096ba0f779bfd102639d602b2e81a1a (diff) | |
download | initscripts-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-x | mageia/network-scripts/ifdown.d/vpn | 8 |
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 |