Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env bash
ls -ld /System/Library/Extensions/*Thunderbolt*
sudo mount -uw /
# if [ -d /System/Library/Extensions/AppleThunderboltDPAdapters.kext ]; then
# sudo mv /System/Library/Extensions/AppleThunderboltDPAdapters.kext /System/Library/Extensions/AppleThunderboltDPAdapters.kext.BAK
# fi
# if [ -d /System/Library/Extensions/AppleThunderboltEDMService.kext ]; then
# sudo mv /System/Library/Extensions/AppleThunderboltEDMService.kext /System/Library/Extensions/AppleThunderboltEDMService.kext.BAK
# fi
# if [ -d /System/Library/Extensions/AppleThunderboltIP.kext ]; then
# sudo mv /System/Library/Extensions/AppleThunderboltIP.kext /System/Library/Extensions/AppleThunderboltIP.kext.BAK
# fi
if [ -d /System/Library/Extensions/AppleThunderboltNHI.kext ]; then
sudo mv /System/Library/Extensions/AppleThunderboltNHI.kext /System/Library/Extensions/AppleThunderboltNHI.kext.BAK
fi
# if [ -d /System/Library/Extensions/AppleThunderboltPCIAdapters.kext ]; then
# sudo mv /System/Library/Extensions/AppleThunderboltPCIAdapters.kext /System/Library/Extensions/AppleThunderboltPCIAdapters.kext.BAK
# fi
# if [ -d /System/Library/Extensions/AppleThunderboltUTDM.kext ]; then
# sudo mv /System/Library/Extensions/AppleThunderboltUTDM.kext /System/Library/Extensions/AppleThunderboltUTDM.kext.BAK
# fi
if [ -d /System/Library/Extensions/IOThunderboltFamily.kext ]; then
sudo mv /System/Library/Extensions/IOThunderboltFamily.kext /System/Library/Extensions/IOThunderboltFamily.kext.BAK
fi
ls -ld /System/Library/Extensions/*Thunderbolt*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment