Advertisement
dfgged

Alternate eGPU script

Apr 18th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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/com.apple.kext.caches/Startup/kernelcache 2>/dev/null
  12. touch /System/Library/Extensions
  13. kextcache -update-volume /Volumes/Macintosh\ HD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement