mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-03-24 12:55:21 +00:00
Mac fix (probably) for old versions that require tap.kext.
This commit is contained in:
parent
1ef3b2d526
commit
af6d01e79b
@ -10,15 +10,14 @@ sleep 0.5
|
||||
|
||||
cd "/Library/Application Support/ZeroTier/One"
|
||||
|
||||
if [ "$OSX_RELEASE" = "10.7" ]; 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.
|
||||
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
|
||||
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
|
||||
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
|
||||
tar -xzf tap.kext.10_7.tar.gz
|
||||
chown -R 0 tap.kext
|
||||
chgrp -R 0 tap.kext
|
||||
fi
|
||||
rm -f tap.kext.10_7.tar.gz
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user