File: maketap

package info (click to toggle)
openvpn 2.1.3-2%2Bsqueeze2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,644 kB
  • ctags: 8,676
  • sloc: ansic: 58,636; sh: 5,290; python: 501; makefile: 312; perl: 234
file content (17 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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