Jump to content
rodrigocunha

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

3 posts in this topic

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By FreeJHack
      MacOS does not support natively the keyboard backlight for non-Apple hardware.
      I wrote an open source Kext project (ClevoService) to perform this task on Clevo laptops.
      It's fully working on my Clevo P9XXEN_EF_ED laptop with Mojave (18G95) and it should works on many other Clevo laptops.
       
      If you own a Clevo laptop with full color backlight keyboard, take a look at:
      https://github.com/FreeJHack/ClevoService
       
      The big advantage is that the backlight function is fully controlled from the numeric keypad and it's saved between boot/reboot and sleep/wake.
      You can change color, backlight level and ON/OFF.
      For the installation, download the kext from release page and follow the instruction given in the GitHub repository.
    • By Vyzantion
      I can not manage to install Catalina on this legacy Asus machine that runs Mojave fine. When the installer boots up, DiskUtility does not see the internal hard-drives, neither the master SATA one or the the slave, ATA one. I have discussed this already on the Clover section with Slice, he told that some kext seems to have changed from Mojave to Catalina, he told me to use IOReg. Since then, I have postponed my work on Catalina due to the issues regarding the Mojave supplemental updates.
      I have decided to start a new topic in here, due to visibility reasons and some new turn. The latest version of the dosdude1 patcher for unsupported Macs, discussed on Macrumors forums, patches the installer so that DiskUtility sees the internal hard-drives, I am able to install Catalina but, on first boot, the OS gets into a kernal panic with the message ”still waiting for root device”. I have searched online for this error, I have found Information regarding previous macOS versions with solutions that seem to have little to no relevance for the present issue.
      Before installation finishes, I receive a message like ”Installation finished on Macintosh HD Data”, instead of ”Installation finished on Macintosh HD”. I admit this split between the two in Catalina still confuses me, perhaps this is how it was suppose to be? Perhaps something that was suppose to end up on Macintosh HD ends in Macintosh HD Data?
      I admit the DVD-Rom and hard-drives are wired kinda of weird by some guy in a PC service, he said this is the optimum combination, something the ATA hard-drive is slave to the DVD-Rom. Perhaps this causes confusion into Catalina? On Mojave this configuration was fine. 
      Probably the solution suggested by Slice is the best, to replace one or more kext from Catalina with the Mojave versions of them. I do not know yet how to identify and replace them. If any other solutions seem possible, I am open to them.
      Specs:
      Asus P5P41TED motherboard.
      Intel Core 2 Duo E 8500 
      2 gb ram DDR 3
    • By Drovosek
      Hey. I found a repository with modified voodoops2controller kext. Finalized it sysctl and kprinssu and the-darkvoid based on the kext from RehabMan.
      https://github.com/syscl/OS-X-Voodoo-PS2-Controller
       
      This kext almost like VoodooPS2Trackpad from acidanthera.
      https://github.com/acidanthera/VoodooPS2
      https://applelife.ru/threads/acidanthera-voodoops2trackpad-dlja-synaptics.2944059/
       
      I attach the compiled version.
      https://vk.com/doc183234383_514349114

      P.S. If you try it, then naturally remove other kexts for the touchpad and keyboard and, first install via KextUtility. If it works fine, then remove it from /S/L/E and throw in /kexts/Other
      VoodooPS2Controller modified syscl.zip
      P. P. S.
      I wanted to upload this archive to the forum in the "Downloads" section to where the cupcakes are located, but I didn't see a button to create a theme there. Also I have there is no opportunity to leave comments. Why?
      It would be nice if someone moved this kext there, too.
    • By Gabigeek
      Hi everybody,
      First this is my first post on this forum so I hope Im creating a topic at the right place 
      Im french, so sorry for my bad english 
       
      So I recently made a Hackintosh Laptop (on a ROG GL553VD-DM078T )
      This laptop is based on a i7 7700HQ and a GTX1050.
      I installed MacOS Sierra using the Clover bootloader and succesfully installed  the kexts needed but one of them is causing trouble.
       
      I Broke my internal ethernet Port so I must use a USB-C ethernet dongle in order to acces the internet ( The Integrated Wifi chipset isn't compatible so that's my only way to connect.)
      Without the UsbInjectAll.kext everything works exept my laptop keyboard wich use USB (yes, the internal ASUS Aura keyboard use USB interface, not PS2 or IC2 ).
      But if I load the UsbInjectAll kext the keyboard works, but the USB-C ethernet dongle is no more recognized at all ( not even in the system report menu)
      The weird thing is that if I plug a USB stick in the USB-C port, it works, but the ethernet dongle won't.
       
      So now I have 2 options :
      -or I load the UsbInjectAll kext and I get my keyboard to work
      -or I disable the UsbInjectAll kext so i can get back my ethernet USB-C dongle to work, but no more keyboard....
       
      Can someone explain why do this happen ? Is there a way to get both The Ethernet dongle and my internal keyboard to work at the same time ?
      If Needed, I can provide more information about the hardware Used etc.
       
      Have a good Day/night 
    • By k.panic
      Hi to all!

      I've installed Yosemite on:
      - i5 4690
      - ASRock H87M Pro4 (with intel ethernet I219-V) (IntelMausiEthernet, AppleIntelE1000 and RehabMan for I219V kexts)
      - 8gb ddr3 RAM
      - 1tb hard disk
       
      If I disable I219-V from BIOS, when I shutdown it, don't reboots (tested with all kexts)
      If I enable I219-V from BIOS, when I shutdown it, the system reboots.
       
      How can I fix this? Thanks!
×