Signed-off-by: Stuart Henderson <sthen@openbsd.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
destroy_tun_device() {
case "$OS" in
- NetBSD|FreeBSD) # and probably others...
+ NetBSD|FreeBSD|OpenBSD) # and probably others...
ifconfig "$TUNDEV" destroy
;;
esac
del_network_route() {
case "$OS" in
- Linux|NetBSD|Darwin|SunOS) # and probably others...
+ Linux|NetBSD|OpenBSD|Darwin|SunOS) # and probably others...
# routes are deleted automatically on device shutdown
return
;;
elif [ "$OS" = "NetBSD" ]; then
:
elif [ "$OS" = "OpenBSD" ]; then
+ if ! ifconfig $TUNDEV > /dev/null; then
+ ifconfig $TUNDEV create
+ fi
:
elif [ "$OS" = "SunOS" ]; then
: