diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-28 09:33:32 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-28 09:33:32 -0400 |
| commit | 148619f0ba836ff894185663633556dd04700a60 (patch) | |
| tree | 710ecbbb7ebc6a2b19d910e10a2ccd472b86c579 /tap-mac/tuntap/pkg/scripts | |
| parent | 17778a36badcb9fdb9b3292e8ec32be3b836c811 (diff) | |
| download | infinitytier-148619f0ba836ff894185663633556dd04700a60.tar.gz infinitytier-148619f0ba836ff894185663633556dd04700a60.zip | |
Make tap build on OSX 10.9, though not in a way that is easy for users. Instead package binaries.
Diffstat (limited to 'tap-mac/tuntap/pkg/scripts')
| -rwxr-xr-x | tap-mac/tuntap/pkg/scripts/startup_item_tap/postflight | 12 | ||||
| -rwxr-xr-x | tap-mac/tuntap/pkg/scripts/startup_item_tun/postflight | 12 | ||||
| -rwxr-xr-x | tap-mac/tuntap/pkg/scripts/tap/postflight | 15 | ||||
| -rwxr-xr-x | tap-mac/tuntap/pkg/scripts/tun/postflight | 15 |
4 files changed, 54 insertions, 0 deletions
diff --git a/tap-mac/tuntap/pkg/scripts/startup_item_tap/postflight b/tap-mac/tuntap/pkg/scripts/startup_item_tap/postflight new file mode 100755 index 00000000..f7d20893 --- /dev/null +++ b/tap-mac/tuntap/pkg/scripts/startup_item_tap/postflight @@ -0,0 +1,12 @@ +#!/bin/sh + +# old versions resided in /System/Library, remove. +rm -r /System/Library/StartupItems/tap + +# Fix ownership and permissions. PackageMaker gets this wrong *sigh* +chown -R root:wheel /Library/StartupItems/tap +chmod -R u=rwX,g=rX,o=rX /Library/StartupItems/tap + +# exit successfully +exit 0 + diff --git a/tap-mac/tuntap/pkg/scripts/startup_item_tun/postflight b/tap-mac/tuntap/pkg/scripts/startup_item_tun/postflight new file mode 100755 index 00000000..63373f38 --- /dev/null +++ b/tap-mac/tuntap/pkg/scripts/startup_item_tun/postflight @@ -0,0 +1,12 @@ +#!/bin/sh + +# old versions resided in /System/Library, remove. +rm -r /System/Library/StartupItems/tun + +# Fix ownership and permissions. PackageMaker gets this wrong *sigh* +chown -R root:wheel /Library/StartupItems/tun +chmod -R u=rwX,g=rX,o=rX /Library/StartupItems/tun + +# exit successfully +exit 0 + diff --git a/tap-mac/tuntap/pkg/scripts/tap/postflight b/tap-mac/tuntap/pkg/scripts/tap/postflight new file mode 100755 index 00000000..6c8b5c9f --- /dev/null +++ b/tap-mac/tuntap/pkg/scripts/tap/postflight @@ -0,0 +1,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 + 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 + |
