Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function main()
- {
- echo "Patching AppleIntelSNBGraphicsFB ..."
- perl -pi -e 's|\x01\x02\x04\x00\x10\x07\x00\x00\x10\x07\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x02\x05\x00\x00\x00\x04\x00\x00\x07\x00\x00\x00|\x01\x02\x02\x00\x10\x07\x00\x00\x10\x07\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x06\x02\x00\x00\x00\x04\x00\x00\x07\x00\x00\x00|g' /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext/Contents/MacOS/AppleIntelSNBGraphicsFB
- echo "Fixing Permissions ..."
- chown -R 0:0 /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext
- chmod -R 755 /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext
- echo "Rebuilding cache..."
- rm -fr /System/Library/Caches/*
- touch /System/Library/Extensions
- echo "Done! You can now reboot the computer, cold boot is recommended...!"
- }
- #--------------------------------------------------------------------------------
- #
- # Only administrators (root) are allowed to run this script.
- #
- #--------------------------------------------------------------------------------
- function _isRoot()
- {
- if [ $(id -u) != 0 ]; then
- echo "This script must be run as root" 1>&2
- exit 1
- fi
- echo 1
- }
- #==================================== START =====================================
- if [ $(_isRoot) ]; then
- main
- fi
- #================================================================================
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement