mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Mac fix (probably) for old versions that require tap.kext.
This commit is contained in:
parent
1ef3b2d526
commit
af6d01e79b
1 changed files with 3 additions and 4 deletions
|
@ -10,15 +10,14 @@ sleep 0.5
|
||||||
|
|
||||||
cd "/Library/Application Support/ZeroTier/One"
|
cd "/Library/Application Support/ZeroTier/One"
|
||||||
|
|
||||||
if [ "$OSX_RELEASE" = "10.7" ]; then
|
if [ "$OSX_RELEASE" = "10.7" -o "$OSX_RELEASE" = "10.8" -o "$OSX_RELEASE" = "10.9" -o "$OSX_RELEASE" = "10.10" -o "$OSX_RELEASE" = "10.11" -o "$OSX_RELEASE" = "10.12" ]; then
|
||||||
# OSX 10.7 cannot use the new tap driver since the new way of kext signing
|
|
||||||
# is not backward compatible. Pull the old one for 10.7 users and replace.
|
|
||||||
# We use https to fetch and check hash as an extra added measure.
|
|
||||||
rm -f tap.kext.10_7.tar.gz
|
rm -f tap.kext.10_7.tar.gz
|
||||||
curl -s https://download.zerotier.com/tap.kext.10_7.tar.gz >tap.kext.10_7.tar.gz
|
curl -s https://download.zerotier.com/tap.kext.10_7.tar.gz >tap.kext.10_7.tar.gz
|
||||||
if [ -s tap.kext.10_7.tar.gz -a "`shasum -a 256 tap.kext.10_7.tar.gz | cut -d ' ' -f 1`" = "e133d4832cef571621d3618f417381b44f51a76ed625089fb4e545e65d3ef2a9" ]; then
|
if [ -s tap.kext.10_7.tar.gz -a "`shasum -a 256 tap.kext.10_7.tar.gz | cut -d ' ' -f 1`" = "e133d4832cef571621d3618f417381b44f51a76ed625089fb4e545e65d3ef2a9" ]; then
|
||||||
rm -rf tap.kext
|
rm -rf tap.kext
|
||||||
tar -xzf tap.kext.10_7.tar.gz
|
tar -xzf tap.kext.10_7.tar.gz
|
||||||
|
chown -R 0 tap.kext
|
||||||
|
chgrp -R 0 tap.kext
|
||||||
fi
|
fi
|
||||||
rm -f tap.kext.10_7.tar.gz
|
rm -f tap.kext.10_7.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue