Mercurial > hg > quicktun
comparison debian/static/etc/network/if-post-down.d/quicktun @ 32:51c6d2fc712f V2.1.8
Fixes contributed by Daniel Dickinson <daniel@cshore.neomailbox.net>
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 12 Oct 2011 01:34:46 +0200 |
parents | 3400045a57b8 |
children | d83d6bb647a2 |
comparison
equal
deleted
inserted
replaced
31:a51d07ac3f1b | 32:51c6d2fc712f |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 test -n "${IF_QT_REMOTE_ADDRESS}" || exit 0 | 2 test -n "${IF_QT_REMOTE_ADDRESS}" || exit 0 |
3 test -z "${IF_QT_NO_PRECREATE}" || exit 0 | 3 test -z "${IF_QT_NO_PRECREATE}" || exit 0 |
4 if [ -x /usr/sbin/openvpn ]; then | 4 if [ -x /usr/sbin/openvpn ]; then |
5 /usr/sbin/openvpn --rmtun --dev "${IFACE}" | 5 /usr/sbin/openvpn --rmtun --dev "${IFACE}" |
6 elif [ -x /sbin/ip ]; then | 6 elif [ -x /sbin/ip ] && /sbin/ip tuntap 2>&1 >/dev/null; then |
7 /sbin/ip tuntap del dev "${IFACE}" | 7 /sbin/ip tuntap del dev "${IFACE}" |
8 elif [ -x /usr/sbin/tunctl ]; then | |
9 /usr/sbin/tunctl -d "${IFACE}" | |
8 fi | 10 fi |