Skip to content

Instantly share code, notes, and snippets.

@ealize
Created October 29, 2018 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ealize/db239357f6e1e797f8b967fd237e514f to your computer and use it in GitHub Desktop.
Save ealize/db239357f6e1e797f8b967fd237e514f to your computer and use it in GitHub Desktop.
update_kext_cache.sh
echo "Fixing ownership and permissions..."
sudo chmod -R 755 /Library/Extensions/*
sudo chmod -R 755 /System/Library/Extensions/*
sudo chown -R root:wheel /Library/Extensions/*
sudo chown -R root:wheel /System/Library/Extensions/*
sudo chown root:admin /
echo "Rebuilding kext cache..."
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment