postflight 405 B

123456789101112131415
  1. #!/bin/sh
  2. # old versions resided in /System/Library, remove.
  3. rm -r /System/Library/Extensions/tun.kext
  4. # unload an old extension (might fail)
  5. kextunload /Library/Extensions/tun.kext
  6. # Fix ownership. The installer gets this wrong *sigh*
  7. chown -R root:wheel /Library/Extensions/tun.kext
  8. chmod -R u=rwX,g=rX,o=rX /Library/Extensions/tun.kext
  9. # load the new version
  10. kextload /Library/Extensions/tun.kext