#!/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