diff options
author | Olav Vitters <olav@vitters.nl> | 2020-07-31 13:34:59 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-07-31 13:34:59 +0200 |
commit | 525d809206ea7d25d7685976a6a3acdc9fff79b0 (patch) | |
tree | 289bc32392a0aeb95cc2070aee830a1914bd2f36 /mageia/network-scripts/ifup.d/vpn | |
parent | 6a119d8d077c62db5a521ce1742ad3250aa4e886 (diff) | |
download | initscripts-525d809206ea7d25d7685976a6a3acdc9fff79b0.tar initscripts-525d809206ea7d25d7685976a6a3acdc9fff79b0.tar.gz initscripts-525d809206ea7d25d7685976a6a3acdc9fff79b0.tar.bz2 initscripts-525d809206ea7d25d7685976a6a3acdc9fff79b0.tar.xz initscripts-525d809206ea7d25d7685976a6a3acdc9fff79b0.zip |
vpn: use same directory layout as Makefile used to generate, part 2
Diffstat (limited to 'mageia/network-scripts/ifup.d/vpn')
-rwxr-xr-x | mageia/network-scripts/ifup.d/vpn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mageia/network-scripts/ifup.d/vpn b/mageia/network-scripts/ifup.d/vpn new file mode 100755 index 00000000..4425d154 --- /dev/null +++ b/mageia/network-scripts/ifup.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-start $VPN_TYPE "$VPN_NAME" + fi +fi |