summaryrefslogtreecommitdiff
path: root/tap-mac/tuntap/pkg/scripts/tap/postflight
blob: 6c8b5c9f5166cce52cf4b7c985b19f52194fa446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# old versions resided in /System/Library, remove.
rm -r /System/Library/Extensions/tap.kext

# unload an old extension (might fail)
kextunload /Library/Extensions/tap.kext

# Fix ownership and permissions. PackageMaker gets this wrong *sigh*
chown -R root:wheel /Library/Extensions/tap.kext
chmod -R u=rwX,g=rX,o=rX /Library/Extensions/tap.kext

# load the new version
kextload /Library/Extensions/tap.kext