summaryrefslogtreecommitdiff
path: root/debian/openvpn.if-down.d
blob: 461078675f2e592579027423c9ee05f196ebe37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

OPENVPN=/etc/init.d/openvpn

if [ ! -x $OPENVPN ]; then
  exit 0
fi

if [ -n "$IF_OPENVPN" ]; then
  for vpn in $IF_OPENVPN; do
    $OPENVPN stop $vpn
  done
fi