summaryrefslogtreecommitdiff
path: root/install-win32/maketap
diff options
context:
space:
mode:
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