aboutsummaryrefslogtreecommitdiffstats
path: root/mandriva/vpn/vpn-ifdown
blob: 466e54fd87efff20161f7cfd178fb1a96de6dde2 (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-stop $VPN_TYPE $VPN_NAME
    fi
fi