diff options
author | Christian Pointner <equinox@anytun.org> | 2008-05-08 20:21:27 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-05-08 20:21:27 +0000 |
commit | 70268b03c27052c7560df3a8ad0744c53dd41fb6 (patch) | |
tree | 29f224cc9192d5bd7ccbfd93464f066157fb99e9 /src/configure | |
parent | new internet draft released (diff) |
added own tun device implementation for linux
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 28 |
1 files changed, 25 insertions, 3 deletions
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 |