summaryrefslogtreecommitdiff
path: root/install-win32/maketap
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2012-02-21 15:53:40 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2012-02-21 15:53:40 +0100
commit349cfa7acb95abe865209a28e417ec74b56f9bba (patch)
treead65334821b587c4ecdd461be84c94305ffdb888 /install-win32/maketap
Imported Upstream version 2.2.1upstream/2.2.1
Diffstat (limited to 'install-win32/maketap')
-rw-r--r--install-win32/maketap17
1 files changed, 17 insertions, 0 deletions
diff --git a/install-win32/maketap b/install-win32/maketap
new file mode 100644
index 0000000..b9c4070
--- /dev/null
+++ b/install-win32/maketap
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Get the x86 and x64 versions of the TAP driver
+
+# get version.nsi definitions
+. autodefs/defs.sh
+
+if [ -d "$TAPBINSRC" ]; then
+ mkdir -p $GENOUT/driver/i386 &>/dev/null
+ mkdir -p $GENOUT/driver/amd64 &>/dev/null
+ for arch in i386 amd64; do
+ s=$TAPBINSRC/$arch
+ cp $s/*.sys $s/*.cat $s/*.inf $GENOUT/driver/$arch
+ done
+else
+ echo Cannot find pre-built tap drivers
+fi