--- ./vpnc-script 2012-06-01 10:27:11.000000000 -0400 +++ /home/zi/commits/ports/sysutils/vpnc-scripts/work/vpnc-scripts-20121109/vpnc-script 2012-11-08 15:59:04.000000000 -0500 @@ -89,7 +89,7 @@ fi # stupid SunOS: no blubber in /usr/local/bin ... (on stdout) -IPROUTE="`which ip | grep '^/'`" 2> /dev/null +IPROUTE="`which ip 2> /dev/null | grep '^/'`" if ifconfig --help 2>&1 | grep BusyBox > /dev/null; then ifconfig_syntax_inet="" @@ -198,7 +198,7 @@ destroy_tun_device() { case "$OS" in - NetBSD|FreeBSD) # and probably others... + NetBSD|FreeBSD|OpenBSD) # and probably others... ifconfig "$TUNDEV" destroy ;; esac @@ -317,7 +317,7 @@ 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 ;; @@ -603,6 +603,9 @@ elif [ "$OS" = "NetBSD" ]; then : elif [ "$OS" = "OpenBSD" ]; then + if ! ifconfig $TUNDEV > /dev/null; then + ifconfig $TUNDEV create + fi : elif [ "$OS" = "SunOS" ]; then :