Alternate eGPU script

dfgged Apr 18th, 2017 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. personalities=("ATI\ Support" Controller AMDBaffinGraphicsAccelerator)
  3. kexts=(AMDSupport AMD9510Controller AMDRadeonX4100)
  4. for (( i=0; i < 3; i++ ))
  5. do
  6. personality="Add :IOKitPersonalities:"${personalities[$i]}":IOPCITunnelCompatible bool true"
  7. plist="/System/Library/Extensions/"${kexts[$i]}".kext/Contents/Info.plist"
  8. /usr/libexec/PlistBuddy -c "$personality" "$plist" 2>/dev/null
  9. done
  10. rm /Volumes/Macintosh\ HD/System/Library/PrelinkedKernels/prelinkedkernel 2>/dev/null
  11. rm /Volumes/Macintosh\ HD/System/Library/Caches/ 2>/dev/null
  12. touch /System/Library/Extensions
  13. kextcache -update-volume /Volumes/Macintosh\ HD
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand