Signed-off-by: Daniel Lenski <dlenski@gmail.com>
fi
}
-destroy_tun_device() {
- case "$OS" in
- NetBSD|OpenBSD) # and probably others...
- ifconfig "$TUNDEV" destroy
- ;;
- FreeBSD|DragonFly)
- ifconfig "$TUNDEV" destroy > /dev/null 2>&1 &
- ;;
- esac
-}
-
# =========== route handling ====================================
if [ -n "$IPROUTE" ]; then
ifconfig "$TUNDEV" down
fi
- destroy_tun_device
+ case "$OS" in
+ NetBSD|OpenBSD) # and probably others...
+ ifconfig "$TUNDEV" destroy
+ ;;
+ FreeBSD|DragonFly)
+ ifconfig "$TUNDEV" destroy > /dev/null 2>&1 &
+ ;;
+ esac
}
do_attempt_reconnect() {