rodrigocunha Posted June 26, 2014 Share Posted June 26, 2014 This is a small script to repair permissions and rebuild kext caches. Usage: boot with boot arg: kext-dev-mode=1 copy script to your home directory, open terminal and run: sudo ./repairrebuild at the end, the script will reboot your system. now you don´t have to use kext-dev-mode again, use it only to rebuild caches. script content: echo "********************************************************" echo "Before run this script, boot your system with boot arg:" echo "kext-dev-mode=1" echo "use it just to rebuild cache." echo "script by: rodrigocunha@inanelymac" echo "********************************************************" echo "." echo "Fixing ownership and permissions..." chmod -R 755 /System/Library/Extensions/* chown -R root:wheel /System/Library/Extensions/* chown root:admin / echo "Rebuilding kext cache..." kextcache -system-prelinked-kernel kextcache -system-caches echo "." echo "process complete." read -p "press a key to reboot" echo "rebooting..." shutdown -r now 6 Link to comment Share on other sites More sharing options...
pinarek Posted June 27, 2014 Share Posted June 27, 2014 rodrigocunha Thank you for completing the idea, which I had yesterday. It is a simple but ingenious solution. 1 Link to comment Share on other sites More sharing options...
rodrigocunha Posted April 26, 2015 Author Share Posted April 26, 2015 up! still useful! Link to comment Share on other sites More sharing options...
Recommended Posts