mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-25 15:41:05 +00:00
16 lines
405 B
Bash
Executable File
16 lines
405 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# old versions resided in /System/Library, remove.
|
|
rm -r /System/Library/Extensions/tun.kext
|
|
|
|
# unload an old extension (might fail)
|
|
kextunload /Library/Extensions/tun.kext
|
|
|
|
# Fix ownership. The installer gets this wrong *sigh*
|
|
chown -R root:wheel /Library/Extensions/tun.kext
|
|
chmod -R u=rwX,g=rX,o=rX /Library/Extensions/tun.kext
|
|
|
|
# load the new version
|
|
kextload /Library/Extensions/tun.kext
|
|
|