Jump to content

[script] Small and fast script to fix perms/kext rebuild

kextcache kext kexts permission permissions script kext-dev-mode=1

  • Please log in to reply
2 replies to this topic

#1
rodrigocunha

rodrigocunha

    InsanelyMac Protégé

  • Members
  • PipPip
  • 51 posts
  • Gender:Male
  • Location:Brazil
  • Interests:Hackintosh, Formula 1, Go-Karting, Model Trains.

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

Attached Files



#2
pinarek

pinarek

    Pinarek Member Since 15 Aug 2005

  • Members
  • PipPipPipPipPipPipPip
  • 780 posts
  • Gender:Male
  • Location:Deutschland
Thank you for completing the idea, which I had yesterday. 
It is a simple but ingenious solution.


#3
rodrigocunha

rodrigocunha

    InsanelyMac Protégé

  • Members
  • PipPip
  • 51 posts
  • Gender:Male
  • Location:Brazil
  • Interests:Hackintosh, Formula 1, Go-Karting, Model Trains.

up! still useful! :)







Also tagged with one or more of these keywords: kextcache, kext, kexts, permission, permissions, script, kext-dev-mode=1


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy