summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/bin/tap-mac/com.zerotier.tap.kext/Contents/MacOS/tapbin50496 -> 0 bytes
-rw-r--r--ext/bin/tap-mac/tap.kext.old/Contents/Info.plist (renamed from ext/bin/tap-mac/com.zerotier.tap.kext/Contents/Info.plist)2
-rwxr-xr-xext/bin/tap-mac/tap.kext.old/Contents/MacOS/tapbin0 -> 81240 bytes
-rw-r--r--ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeDirectory (renamed from ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeDirectory)bin145 -> 145 bytes
-rw-r--r--ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeRequirements (renamed from ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeRequirements)bin176 -> 176 bytes
-rw-r--r--ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeResources (renamed from ext/bin/tap-mac/com.zerotier.tap.kext/Contents/_CodeSignature/CodeResources)0
-rw-r--r--ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeSignature (renamed from ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeSignature)bin8578 -> 8578 bytes
-rw-r--r--ext/bin/tap-mac/tap.kext/Contents/Info.plist2
-rwxr-xr-xext/bin/tap-mac/tap.kext/Contents/MacOS/tapbin81240 -> 50496 bytes
-rwxr-xr-xext/installfiles/mac/launch.sh10
-rwxr-xr-xext/installfiles/mac/postinst.sh6
11 files changed, 7 insertions, 13 deletions
diff --git a/ext/bin/tap-mac/com.zerotier.tap.kext/Contents/MacOS/tap b/ext/bin/tap-mac/com.zerotier.tap.kext/Contents/MacOS/tap
deleted file mode 100755
index 48bf9625..00000000
--- a/ext/bin/tap-mac/com.zerotier.tap.kext/Contents/MacOS/tap
+++ /dev/null
Binary files differ
diff --git a/ext/bin/tap-mac/com.zerotier.tap.kext/Contents/Info.plist b/ext/bin/tap-mac/tap.kext.old/Contents/Info.plist
index c20eefa5..45c2839a 100644
--- a/ext/bin/tap-mac/com.zerotier.tap.kext/Contents/Info.plist
+++ b/ext/bin/tap-mac/tap.kext.old/Contents/Info.plist
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
- <string>20150118</string>
+ <string>20131028</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
diff --git a/ext/bin/tap-mac/tap.kext.old/Contents/MacOS/tap b/ext/bin/tap-mac/tap.kext.old/Contents/MacOS/tap
new file mode 100755
index 00000000..6a9021a7
--- /dev/null
+++ b/ext/bin/tap-mac/tap.kext.old/Contents/MacOS/tap
Binary files differ
diff --git a/ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeDirectory b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeDirectory
index 58c421c2..58c421c2 100644
--- a/ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeDirectory
+++ b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeDirectory
Binary files differ
diff --git a/ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeRequirements b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeRequirements
index 1df93129..1df93129 100644
--- a/ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeRequirements
+++ b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeRequirements
Binary files differ
diff --git a/ext/bin/tap-mac/com.zerotier.tap.kext/Contents/_CodeSignature/CodeResources b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeResources
index 0710b400..0710b400 100644
--- a/ext/bin/tap-mac/com.zerotier.tap.kext/Contents/_CodeSignature/CodeResources
+++ b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeResources
diff --git a/ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeSignature b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeSignature
index 64429727..64429727 100644
--- a/ext/bin/tap-mac/tap.kext/Contents/_CodeSignature/CodeSignature
+++ b/ext/bin/tap-mac/tap.kext.old/Contents/_CodeSignature/CodeSignature
Binary files differ
diff --git a/ext/bin/tap-mac/tap.kext/Contents/Info.plist b/ext/bin/tap-mac/tap.kext/Contents/Info.plist
index 45c2839a..c20eefa5 100644
--- a/ext/bin/tap-mac/tap.kext/Contents/Info.plist
+++ b/ext/bin/tap-mac/tap.kext/Contents/Info.plist
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
- <string>20131028</string>
+ <string>20150118</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
diff --git a/ext/bin/tap-mac/tap.kext/Contents/MacOS/tap b/ext/bin/tap-mac/tap.kext/Contents/MacOS/tap
index 6a9021a7..48bf9625 100755
--- a/ext/bin/tap-mac/tap.kext/Contents/MacOS/tap
+++ b/ext/bin/tap-mac/tap.kext/Contents/MacOS/tap
Binary files differ
diff --git a/ext/installfiles/mac/launch.sh b/ext/installfiles/mac/launch.sh
index ef22ccbd..41c4b9c8 100755
--- a/ext/installfiles/mac/launch.sh
+++ b/ext/installfiles/mac/launch.sh
@@ -1,15 +1,7 @@
#!/bin/bash
zthome="/Library/Application Support/ZeroTier/One"
-export PATH="/bin:/usr/bin:/sbin:/usr/sbin:$zthome"
-
-# If the app has been deleted, uninstall the service
-cd "$zthome"
-if [ -L './shutdownIfUnreadable' -a ! -f "`readlink ./shutdownIfUnreadable`" ]; then
- rm -f /tmp/ZeroTierOneUninstall.log
- /bin/bash "$zthome/uninstall.sh" >/tmp/ZeroTierOneUninstall.log 2>&1
- exit 0
-fi
+export PATH="$zthome:/bin:/usr/bin:/sbin:/usr/sbin"
# Launch ZeroTier One (not as daemon... launchd monitors it)
exec zerotier-one
diff --git a/ext/installfiles/mac/postinst.sh b/ext/installfiles/mac/postinst.sh
index 987e131b..47d9ddd9 100755
--- a/ext/installfiles/mac/postinst.sh
+++ b/ext/installfiles/mac/postinst.sh
@@ -6,10 +6,12 @@ launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
cd "/Library/Application Support/ZeroTier/One"
rm -rf node.log node.log.old root-topology shutdownIfUnreadable autoupdate.log updates.d
+chown -R 0 tap.kext
+chgrp -R 0 tap.kext
if [ ! -f authtoken.secret ]; then
head -c 4096 /dev/urandom | md5 | head -c 24 >authtoken.secret
- chown root authtoken.secret
- chgrp wheel authtoken.secret
+ chown 0 authtoken.secret
+ chgrp 0 authtoken.secret
chmod 0600 authtoken.secret
fi
rm -f zerotier-cli zerotier-idtool