Last active
September 30, 2022 22:20
-
-
Save graphis/7933ac36dd9bcdc45000aff65ef22907 to your computer and use it in GitHub Desktop.
NVRAM and KEXT Cache Cleanup
This file contains hidden or 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
#!/bin/sh | |
echo "NVRAM and KEXT Cache Cleanup" | |
sudo nvram -c | |
sudo purge | |
sync | |
sudo touch /System/Library/Extensions && sudo kextcache -u / | |
sync | |
echo 'done, reboot now...' | |
# kext | |
# sudo chown root:wheel filepath | |
# sudo chmod -R 755 filepath | |
# sudo touch /System/Library/Extensions | |
# sudo rm -f /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache | |
# sudo update_dyld_shared_cache -force | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment