Mercurial > hg > quicktun
diff 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 |
line wrap: on
line diff
--- a/debian/static/etc/network/if-post-down.d/quicktun Wed Oct 12 01:11:48 2011 +0200 +++ b/debian/static/etc/network/if-post-down.d/quicktun Wed Oct 12 01:34:46 2011 +0200 @@ -3,6 +3,8 @@ test -z "${IF_QT_NO_PRECREATE}" || exit 0 if [ -x /usr/sbin/openvpn ]; then /usr/sbin/openvpn --rmtun --dev "${IFACE}" -elif [ -x /sbin/ip ]; then +elif [ -x /sbin/ip ] && /sbin/ip tuntap 2>&1 >/dev/null; then /sbin/ip tuntap del dev "${IFACE}" +elif [ -x /usr/sbin/tunctl ]; then + /usr/sbin/tunctl -d "${IFACE}" fi