From 70268b03c27052c7560df3a8ad0744c53dd41fb6 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 8 May 2008 20:21:27 +0000 Subject: added own tun device implementation for linux --- src/configure | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'src/configure') diff --git a/src/configure b/src/configure index 11cf0e1..9f6ff4b 100755 --- a/src/configure +++ b/src/configure @@ -1,5 +1,27 @@ #!/bin/sh -cd openvpn -./configure --disable-lzo --disable-crypto -cd .. +TARGET=$1 +if [ -z "$TARGET" ]; then + TARGET="ovpn" +fi + +case $TARGET in + linux) + rm -rf tunDevice.cpp + rm -rf tunDevice.h + ln -sf linux/tunDevice.cpp + ln -sf linux/tunDevice.h + ;; + ovpn) + rm -rf tunDevice.cpp + rm -rf tunDevice.cpp + ln -sf ovpn/tunDevice.cpp + ln -sf ovpn/tunDevice.h + cd openvpn + ./configure --disable-lzo --disable-crypto + cd .. + ;; + *) + echo "Usage: $0 (linux|ovpn)" + ;; +esac -- cgit v1.2.3