aboutsummaryrefslogtreecommitdiffstats
path: root/mageia/network-scripts/ifup.d/vpn
blob: ccdf68dd0ff91bd87b7e04545e1cccaeeea9ed46 (plain)
1
2
3
4
5
6
7
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