Skip to content

Commit

Permalink
Mac fix (probably) for old versions that require tap.kext.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamierymenko committed Nov 26, 2020
1 parent 1ef3b2d commit af6d01e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ext/installfiles/mac/postinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af6d01e

Please sign in to comment.