Created
October 29, 2018 19:02
-
-
Save ealize/db239357f6e1e797f8b967fd237e514f to your computer and use it in GitHub Desktop.
update_kext_cache.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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