diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-07 18:14:12 -0500 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-07 18:14:12 -0500 |
| commit | aca31c7055bb500cc3783a07ce7158d3ec4e07b7 (patch) | |
| tree | bc129d80f8b7f12b38b14e0a90b89aa74c5aff63 /ext/installfiles/mac/postinst.sh | |
| parent | 6073e7972f61422b39901ba27bdb5d9fbad9c547 (diff) | |
| download | infinitytier-aca31c7055bb500cc3783a07ce7158d3ec4e07b7.tar.gz infinitytier-aca31c7055bb500cc3783a07ce7158d3ec4e07b7.zip | |
Put kext back in Mac distro and use on versions older than High Sierra (which lack the feth device)
Diffstat (limited to 'ext/installfiles/mac/postinst.sh')
| -rwxr-xr-x | ext/installfiles/mac/postinst.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/installfiles/mac/postinst.sh b/ext/installfiles/mac/postinst.sh index b4ea2ee2..95301a4e 100755 --- a/ext/installfiles/mac/postinst.sh +++ b/ext/installfiles/mac/postinst.sh @@ -3,6 +3,7 @@ export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin OSX_RELEASE=`sw_vers -productVersion | cut -d . -f 1,2` +DARWIN_MAJOR=`uname -r | cut -d . -f 1` launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1 sleep 0.5 @@ -43,9 +44,11 @@ rm -f zerotier-cli zerotier-idtool ln -sf "/Library/Application Support/ZeroTier/One/zerotier-one" zerotier-cli ln -sf "/Library/Application Support/ZeroTier/One/zerotier-one" zerotier-idtool -cd "/Library/Application Support/ZeroTier/One" -kextload -r . tap.kext >>/dev/null 2>&1 & -disown %1 +if [ $DARWIN_MAJOR -le 16 ]; then + cd "/Library/Application Support/ZeroTier/One" + kextload -r . tap.kext >>/dev/null 2>&1 & + disown %1 +fi launchctl load /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1 |
