From 148619f0ba836ff894185663633556dd04700a60 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 28 Oct 2013 09:33:32 -0400 Subject: Make tap build on OSX 10.9, though not in a way that is easy for users. Instead package binaries. --- tap-mac/tuntap/pkg/scripts/tun/postflight | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tap-mac/tuntap/pkg/scripts/tun/postflight (limited to 'tap-mac/tuntap/pkg/scripts/tun') diff --git a/tap-mac/tuntap/pkg/scripts/tun/postflight b/tap-mac/tuntap/pkg/scripts/tun/postflight new file mode 100755 index 00000000..a3228eb0 --- /dev/null +++ b/tap-mac/tuntap/pkg/scripts/tun/postflight @@ -0,0 +1,15 @@ +#!/bin/sh + +# old versions resided in /System/Library, remove. +rm -r /System/Library/Extensions/tun.kext + +# unload an old extension (might fail) +kextunload /Library/Extensions/tun.kext + +# Fix ownership. The installer gets this wrong *sigh* +chown -R root:wheel /Library/Extensions/tun.kext +chmod -R u=rwX,g=rX,o=rX /Library/Extensions/tun.kext + +# load the new version +kextload /Library/Extensions/tun.kext + -- cgit v1.2.3