9784f964f0
was already pulled in via libs, so no new deps), and avoid SEPARATE_BUILD for now as the code to detect a version mismatch between binary and lib in this version doesn't handle it.
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
$OpenBSD: patch-vpnc-script,v 1.1 2012/11/08 16:44:21 sthen Exp $
|
|
--- vpnc-script.orig Thu Nov 8 16:22:19 2012
|
|
+++ vpnc-script Thu Nov 8 16:22:31 2012
|
|
@@ -89,7 +89,7 @@ if [ ! -d "/var/run/vpnc" ]; then
|
|
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 @@ do_ifconfig() {
|
|
|
|
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 @@ else # use route command
|
|
|
|
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 @@ do_pre_init() {
|
|
elif [ "$OS" = "NetBSD" ]; then
|
|
:
|
|
elif [ "$OS" = "OpenBSD" ]; then
|
|
+ if ! ifconfig $TUNDEV > /dev/null; then
|
|
+ ifconfig $TUNDEV create
|
|
+ fi
|
|
:
|
|
elif [ "$OS" = "SunOS" ]; then
|
|
:
|