-bash-3.2# ls
.forward Library
-bash-3.2# patch
Would you like to view verbose ouput?
Please select one of the following options.
1 - Yes
2 - No
1
+ Environment_Check
+ echo '\033[1;32mChecking for system environment...\033[0m'
Checking for system environment...
+ '[' -d '/Install macOS Mojave.app' ']'
+ echo '\033[1;32mSystem environment indetifed as Installer or Recovery environment.\033[0m'
System environment indetifed as Installer or Recovery environment.
+ environment=installer
+ '[' '!' -d '/Install macOS Mojave.app' ']'
+ Root_Check
+ echo '\033[1;32mChecking for root permissions...\033[0m'
Checking for root permissions...
+ [[ installer == \i\n\s\t\a\l\l\e\r ]]
+ echo '\033[1;32mRoot permissions check passed.\033[0m'
Root permissions check passed.
+ [[ installer == \n\o\r\m\a\l ]]
+ SIP_Check
+ echo '\033[1;32mChecking for System Integrity Protection status...\033[0m'
Checking for System Integrity Protection status...
++ csrutil status
+ [[ System Integrity Protection status: disabled. == *disabled* ]]
+ echo '\033[1;32mSystem Integrity Protection status check passed.\033[0m'
System Integrity Protection status check passed.
++ csrutil status
+ [[ System Integrity Protection status: disabled. == *enabled* ]]
+ File_Check
+ echo '\033[1;32mChecking for required files...\033[0m'
Checking for required files...
+ [[ -d Patch ]]
+ echo '\033[1;32mFile check passed.\033[0m'
File check passed.
+ Ask_Model
++ sysctl hw.model
+ model='hw.model: MacBook4,1'
+ model=MacBook4,1
+ echo '\033[1;32mDetecting model...\033[0m'
Detecting model...
+ echo '\033[1;32mDetected model as MacBook4,1.\033[0m'
Detected model as MacBook4,1.
+ echo '\033[1;34mWhat model would you like to use?\033[0m'
What model would you like to use?
+ echo '\033[3m\033[1;34mPlease select one of the following options.\033[0m'
Please select one of the following options.
+ echo ''
+ echo '\033[1;34m1 - Use detected model\n2 - Manually select model\033[0m'
1 - Use detected model
2 - Manually select model
+ echo ''
+ Allow_Input
+ stty echo
+ read -e mch
2
+ Prevent_Input
+ stty -echo
+ [[ 2 == \1 ]]
+ [[ 2 == \2 ]]
+ echo '\033[1;34mWhat model would you like to use?\033[0m'
What model would you like to use?
+ echo '\033[3m\033[1;34mPlease select the correct model.\033[0m'
Please select the correct model.
+ echo ''
+ echo '\033[1;34miMac7,1\niMac8,1\niMac9,1\niMac10,1\niMac10,2\niMac11,1\niMac11,2\niMac11,3\niMac12,1\niMac12,2\nMacBook4,1\nMacBook5,1\nMacBook5,2\nMacBook6,1\nMacBook7,1\nMacBookAir2,1\nMacBookAir3,1\nMacBookAir3,2\nMacBookAir4,1\nMacBookAir4,2\nMacBookPro4,1\nMacBookPro5,1\nMacBookPro5,2\nMacBookPro5,3\nMacBookPro5,4\nMacBookPro5,5\nMacBookPro6,1\nMacBookPro6,2\nMacBookPro7,1\nMacBookPro8,1\nMacBookPro8,2\nMacBookPro8,3\nMacmini3,1\nMacmini4,1\nMacmini5,1\nMacmini5,2\nMacmini5,3\nMacPro3,1\nMacPro4,1\nXserve2,1\nXserve3,1\nDev\033[0m'
iMac7,1
iMac8,1
iMac9,1
iMac10,1
iMac10,2
iMac11,1
iMac11,2
iMac11,3
iMac12,1
iMac12,2
MacBook4,1
MacBook5,1
MacBook5,2
MacBook6,1
MacBook7,1
MacBookAir2,1
MacBookAir3,1
MacBookAir3,2
MacBookAir4,1
MacBookAir4,2
MacBookPro4,1
MacBookPro5,1
MacBookPro5,2
MacBookPro5,3
MacBookPro5,4
MacBookPro5,5
MacBookPro6,1
MacBookPro6,2
MacBookPro7,1
MacBookPro8,1
MacBookPro8,2
MacBookPro8,3
Macmini3,1
Macmini4,1
Macmini5,1
Macmini5,2
Macmini5,3
MacPro3,1
MacPro4,1
Xserve2,1
Xserve3,1
Dev
+ echo ''
+ Allow_Input
+ stty echo
+ read -e model
MacBook4,1
+ Prevent_Input
+ stty -echo
+ echo '\033[1;32mUsing manually selected model...\033[0m'
Using manually selected model...
+ echo '\033[1;32mUsing MacBook4,1 as model...\033[0m'
Using MacBook4,1 as model...
+ Ask_Volume
+ echo '\033[1;32mRetrieving list of volumes...\033[0m'
Retrieving list of volumes...
+ echo '\033[1;32mRetrieved list of volumes.\033[0m'
Retrieved list of volumes.
+ echo ''
+ for vp in '/Volumes/*'
+ vn='Macintosh HD'
+ [[ ! Macintosh HD == com.apple* ]]
+ echo '\033[1;34mMacintosh HD\033[0m'
+ sort -V
Macintosh HD
+ for vp in '/Volumes/*'
+ vn='OS X Base System'
+ [[ ! OS X Base System == com.apple* ]]
+ echo '\033[1;34mOS X Base System\033[0m'
+ sort -V
OS X Base System
+ echo ''
+ echo '\033[1;34mWhat volume would you like to use?\033[0m'
What volume would you like to use?
+ echo '\033[3m\033[1;34mPlease respond with a volume name.\033[0m'
Please respond with a volume name.
+ Allow_Input
+ stty echo
+ read -e volume
Macintosh HD
+ Prevent_Input
+ stty -echo
+ Check_System
+ echo '\033[1;32mChecking system version...\033[0m'
Checking system version...
++ grep -A1 ProductVersion '/Volumes/Macintosh HD/System/Library/CoreServices/SystemVersion.plist'
+ systmvr=' <key>ProductVersion</key>
<string>10.14.4</string>'
+ systmvr='10.14.4</string>'
+ systmvr=10.14.4
+ systmshrtvr=10.14
+ systmundrvr=10_14
++ grep -A1 ProductVersion '/Volumes/Macintosh HD/S*/L*/C*/SystemVersion-sud.plist'
grep: /Volumes/Macintosh HD/S*/L*/C*/SystemVersion-sud.plist: No such file or directory
+ systmsudvr=
+ systmsudvr=
+ systmsudvr=
++ grep -A1 ProductBuildVersion '/Volumes/Macintosh HD/System/Library/CoreServices/SystemVersion.plist'
+ systmbld=' <key>ProductBuildVersion</key>
<string>18E226</string>'
+ systmbld='18E226</string>'
+ systmbld=18E226
++ grep -A1 ProductBuildVersion '/Volumes/Macintosh HD/S*/L*/C*/SystemVersion-sud.plist'
grep: /Volumes/Macintosh HD/S*/L*/C*/SystemVersion-sud.plist: No such file or directory
+ systmsudbld=
+ systmsudbld=
+ systmsudbld=
+ [[ 10.14.4 == 10.12* ]]
+ [[ 10.14.4 == 10.13* ]]
+ [[ 10.14.4 == 10.14* ]]
+ systemsprtd=1
+ [[ 1 == \1 ]]
+ echo '\033[1;32mSystem version check passed.\033[0m'
System version check passed.
+ Patch_System_1
+ echo '\033[1;32mPatching input drivers...\033[0m'
Patching input drivers...
+ [[ 10.14 == \1\0\.\1\4 ]]
+ cp -R patch/AppleUSBACM.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/IOUSBFamily.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/IOUSBHostFamily.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/LegacyUSBEthernet.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/LegacyUSBInjector.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ [[ 10.14 == \1\0\.\1\4 ]]
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBACM.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBACM.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBHostFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBHostFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/LegacyUSBEthernet.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/LegacyUSBEthernet.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/LegacyUSBInjector.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/LegacyUSBInjector.kext'
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\4\,\1 ]]
+ cp -R patch/AppleHIDMouse-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/AppleHIDMouse.kext'
+ cp -R patch/AppleHSSPIHIDDriver-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/AppleHSSPIHIDDriver.kext'
+ cp -R patch/AppleIRController-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/AppleIRController.kext'
+ cp -R patch/AppleTopCase-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/AppleTopCase.kext'
+ cp -R patch/AppleUSBMultitouch-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBMultitouch.kext'
+ cp -R patch/AppleUSBTopCase-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBTopCase.kext'
+ cp -R patch/IOBDStorageFamily-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOBDStorageFamily.kext'
+ cp -R patch/IOSerialFamily-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOSerialFamily.kext'
+ cp -R patch/IOUSBFamily-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBFamily.kext'
+ cp -R patch/IOUSBHostFamily-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBHostFamily.kext'
+ cp -R patch/IOUSBMassStorageClass-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBMassStorageClass.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleHIDMouse.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleHIDMouse.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleHSSPIHIDDriver.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleHSSPIHIDDriver.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleIRController.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleIRController.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleTopCase.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleTopCase.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBMultitouch.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBMultitouch.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBTopCase.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleUSBTopCase.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOBDStorageFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOBDStorageFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOSerialFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOSerialFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBHostFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBHostFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBMassStorageClass.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOUSBMassStorageClass.kext'
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\5\,\2 ]]
+ echo '\033[1;32mPatched input drivers.\033[0m'
Patched input drivers.
+ echo '\033[1;32mPatching audio drivers...\033[0m'
Patching audio drivers...
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\4\,\1 ]]
+ cp -R patch/AppleHDA-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/AppleHDA.kext'
+ cp -R patch/IOAudioFamily-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOAudioFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleHDA.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleHDA.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOAudioFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOAudioFamily.kext'
+ echo '\033[1;32mPatched audio drivers.\033[0m'
Patched audio drivers.
+ echo '\033[1;32mPatching ambient light sensor drivers...\033[0m'
Patching ambient light sensor drivers...
+ cp -R patch/AmbientLightSensorHID.plugin '/Volumes/Macintosh HD/System/Library/Extensions/AppleSMCLMU.kext/Contents/PlugIns/'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleSMCLMU.kext/Contents/PlugIns/AmbientLightSensorHID.plugin'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleSMCLMU.kext/Contents/PlugIns/AmbientLightSensorHID.plugin'
+ echo '\033[1;32mPatched ambient light sensor drivers.\033[0m'
Patched ambient light sensor drivers.
+ Patch_System_10_14
+ echo '\033[1;32mPatching graphics drivers...\033[0m'
Patching graphics drivers...
+ cp -R patch/AMD2400Controller.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMD2600Controller.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMD3800Controller.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMD4600Controller.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMD4800Controller.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMD5000Controller.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMD6000Controller.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDFramebuffer.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDLegacyFramebuffer.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDLegacySupport.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDRadeonVADriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDRadeonVADriver2.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDRadeonX3000.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDRadeonX3000GLDriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDRadeonX4000.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDRadeonX4000GLDriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDRadeonX4000HWServices.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDShared.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AMDSupport.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelFramebufferAzul.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelFramebufferCapri.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHD3000Graphics.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHD3000GraphicsGA.plugin '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHD3000GraphicsGLDriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHD3000GraphicsVADriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHDGraphics.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHDGraphicsFB.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHDGraphicsGA.plugin '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHDGraphicsGLDriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelHDGraphicsVADriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelSNBGraphicsFB.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelSNBVA.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/ATIRadeonX2000.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/ATIRadeonX2000GA.plugin '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/ATIRadeonX2000GLDriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/ATIRadeonX2000VADriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/GeForceTesla.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/GeForceTeslaGLDriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/GeForceTeslaVADriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/IOAccelerator2D.plugin '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/IOAcceleratorFamily2.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/IOGraphicsFamily.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/IONDRVSupport.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/NVDANV50HalTesla.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/NVDAResmanTesla.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\4\,\1 ]]
+ cp -R patch/AppleIntelGMAX3100.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelGMAX3100FB.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelGMAX3100GA.plugin '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelGMAX3100GLDriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleIntelGMAX3100VADriver.bundle '/Volumes/Macintosh HD/System/Library/Extensions'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions'
+ [[ 10.14.4 == 10.14.4 ]]
+ rm -R '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/GPUSupport.framework'
+ cp -R patch/GPUSupport.framework '/Volumes/Macintosh HD/System/Library/PrivateFrameworks'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/GPUSupport.framework'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/GPUSupport.framework'
+ rm -R '/Volumes/Macintosh HD/System/Library/Frameworks/OpenGL.framework'
+ cp -R patch/OpenGL.framework '/Volumes/Macintosh HD/System/Library/Frameworks'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Frameworks/OpenGL.framework'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Frameworks/OpenGL.framework'
+ echo '\033[1;32mPatched graphics drivers.\033[0m'
Patched graphics drivers.
+ echo '\033[1;32mPatching backlight drivers...\033[0m'
Patching backlight drivers...
+ cp -R patch/AppleBacklight.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/AppleBacklightExpert.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ rm -R '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/DisplayServices.framework'
+ cp -R patch/DisplayServices.framework '/Volumes/Macintosh HD/System/Library/PrivateFrameworks'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleBacklight.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleBacklight.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/AppleBacklightExpert.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/AppleBacklightExpert.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/DisplayServices.framework'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/DisplayServices.framework'
+ echo '\033[1;32mPatched backlight drivers.\033[0m'
Patched backlight drivers.
+ echo '\033[1;32mPatching AirPort drivers...\033[0m'
Patching AirPort drivers...
+ cp -R patch/AirPortAtheros40.kext '/Volumes/Macintosh HD/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns'
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\A\i\r\2\,\1 ]]
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\4\,\1 ]]
+ cp -R patch/AppleAirPortBrcm43224.kext '/Volumes/Macintosh HD/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns'
+ cp -R patch/corecapture.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ cp -R patch/CoreCaptureResponder.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros40.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros40.kext'
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\A\i\r\2\,\1 ]]
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\4\,\1 ]]
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AppleAirPortBrcm43224.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AppleAirPortBrcm43224.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/corecapture.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/corecapture.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/CoreCaptureResponder.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/CoreCaptureResponder.kext'
+ echo '\033[1;32mPatched AirPort drivers.\033[0m'
Patched AirPort drivers.
+ [[ MacBook4,1 == \M\a\c\B\o\o\k\4\,\1 ]]
+ echo '\033[1;32mPatching Bluetooth drivers...\033[0m'
Patching Bluetooth drivers...
+ cp -R patch/IOBluetoothFamily-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOBluetoothFamily.kext'
+ cp -R patch/IOBluetoothHIDDriver-MB4.kext '/Volumes/Macintosh HD/System/Library/Extensions/IOBluetoothHIDDriver.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOBluetoothFamily.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOBluetoothFamily.kext'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/IOBluetoothHIDDriver.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/IOBluetoothHIDDriver.kext'
+ echo '\033[1;32mPatched Bluetooth drivers.\033[0m'
Patched Bluetooth drivers.
+ [[ 10.14.4 == 10.14.4 ]]
+ echo '\033[1;32mPatching Siri...\033[0m'
Patching Siri...
+ cp -R patch/SiriUI.framework '/Volumes/Macintosh HD/System/Library/PrivateFrameworks'
cp: cannot overwrite directory /Volumes/Macintosh HD/System/Library/PrivateFrameworks/SiriUI.framework/Resources with non-directory patch/SiriUI.framework/Resources
cp: cannot overwrite directory /Volumes/Macintosh HD/System/Library/PrivateFrameworks/SiriUI.framework/Versions/Current with non-directory patch/SiriUI.framework/Versions/Current
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/SiriUI.framework'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/PrivateFrameworks/SiriUI.framework'
+ echo '\033[1;32mPatched Siri.\033[0m'
Patched Siri.
+ echo '\033[1;32mCopying transparency utility...\033[0m'
Copying transparency utility...
+ cp patch/transutil.sh '/Volumes/Macintosh HD/usr/bin/transutil'
+ chmod +x '/Volumes/Macintosh HD/usr/bin/transutil'
+ [[ ! 10.14.4 == '' ]]
+ [[ -e /Volumes/Macintosh HD/System/Library/PrivateFrameworks/CoreUI.framework/Versions/Current/CoreUI-bak ]]
+ [[ -e /Volumes/Macintosh HD/System/Library/Frameworks/AppKit.framework/Versions/Current/AppKit-bak ]]
+ [[ -e /Volumes/Macintosh HD/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Versions/Current/HIToolbox-bak ]]
+ echo '\033[1;32mCopied transparency utility.\033[0m'
Copied transparency utility.
+ Patch_System_2
+ echo '\033[1;32mPatching software update check...\033[0m'
Patching software update check...
+ [[ 10.14 == \1\0\.\1\2 ]]
+ cp patch/SUVMMFaker.dylib '/Volumes/Macintosh HD/usr/lib'
+ cp patch/com.apple.softwareupdated.plist '/Volumes/Macintosh HD/System/Library/LaunchDaemons'
+ chown 0:0 '/Volumes/Macintosh HD/usr/lib/SUVMMFaker.dylib'
+ chmod 755 '/Volumes/Macintosh HD/usr/lib/SUVMMFaker.dylib'
+ chown 0:0 '/Volumes/Macintosh HD/System/Library/LaunchDaemons/com.apple.softwareupdated.plist'
+ chmod 755 '/Volumes/Macintosh HD/System/Library/LaunchDaemons/com.apple.softwareupdated.plist'
+ echo '\033[1;32mPatched software update check.\033[0m'
Patched software update check.
+ echo '\033[1;32mSaving system model...\033[0m'
Saving system model...
+ cp patch/ModelVersion.plist '/Volumes/Macintosh HD/System/Library/CoreServices'
+ sed -i '' s/model/MacBook4,1/ '/Volumes/Macintosh HD/System/Library/CoreServices/ModelVersion.plist'
+ chown 0:0 '/Volumes/Macintosh HD/System/Library/CoreServices/ModelVersion.plist'
+ chmod 755 '/Volumes/Macintosh HD/System/Library/CoreServices/ModelVersion.plist'
+ echo '\033[1;32mSaved system model.\033[0m'
Saved system model.
+ echo '\033[1;32mDisabling System Integrity Protection...\033[0m'
Disabling System Integrity Protection...
+ cp -R patch/SIPManager.kext '/Volumes/Macintosh HD/System/Library/Extensions'
+ chown -R 0:0 '/Volumes/Macintosh HD/System/Library/Extensions/SIPManager.kext'
+ chmod -R 755 '/Volumes/Macintosh HD/System/Library/Extensions/SIPManager.kext'
+ echo '\033[1;32mDisabled System Integrity Protection.\033[0m'
Disabled System Integrity Protection.
+ echo '\033[1;32mInstalling System Update Detection...\033[0m'
Installing System Update Detection...
+ cp '/Volumes/Macintosh HD/System/Library/CoreServices/SystemVersion.plist' '/Volumes/Macintosh HD/System/Library/CoreServices/SystemVersion-sud.plist'
+ chown 0:0 '/Volumes/Macintosh HD/System/Library/CoreServices/SystemVersion-sud.plist'
+ chmod 755 '/Volumes/Macintosh HD/System/Library/CoreServices/SystemVersion-sud.plist'
+ cp patch/com.startup.sudcheck.plist '/Volumes/Macintosh HD/Library/LaunchAgents'
+ chown 0:0 '/Volumes/Macintosh HD/Library/LaunchAgents/com.startup.sudcheck.plist'
+ chmod 755 '/Volumes/Macintosh HD/Library/LaunchAgents/com.startup.sudcheck.plist'
+ cp -R patch/sudagent '/Volumes/Macintosh HD/usr'
+ chown -R 0:0 '/Volumes/Macintosh HD/usr/sudagent'
+ chmod -R 755 '/Volumes/Macintosh HD/usr/sudagent'
+ cp patch/sudcheck.sh '/Volumes/Macintosh HD/usr/bin/sudcheck'
+ cp patch/sudutil.sh '/Volumes/Macintosh HD/usr/bin/sudutil'
+ chmod +x '/Volumes/Macintosh HD/usr/bin/sudcheck'
+ chmod +x '/Volumes/Macintosh HD/usr/bin/sudutil'
+ echo '\033[1;32mInstalled System Update Detection.\033[0m'
Installed System Update Detection.
+ [[ 10.14 == \1\0\.\1\4 ]]
+ echo '\033[1;32mPatching kernel panic issue...\033[0m'
Patching kernel panic issue...
+ rm -R '/Volumes/Macintosh HD/System/Library/UserEventPlugins/com.apple.telemetry.plugin'
+ echo '\033[1;32mPatched kernel panic issue.\033[0m'
Patched kernel panic issue.
+ echo '\033[1;32mPatching kernel exstension cache...\033[0m'
Patching kernel exstension cache...
+ rm '/Volumes/Macintosh HD/System/Library/PrelinkedKernels/prelinkedkernel'
+ kextcache -update-volume '/Volumes/Macintosh HD'
+ echo '\033[1;32mPatched kernel exstension cache.\033[0m'
Patched kernel exstension cache.
+ echo '\033[1;32mRemoving platform support check...\033[0m'
Removing platform support check...
+ rm '/Volumes/Macintosh HD/System/Library/CoreServices/PlatformSupport.plist'
+ echo '\033[1;32mRemoved platform support check.\033[0m'
Removed platform support check.
+ Patch_Helpers
++ diskutil info 'Macintosh HD'
++ grep 'File System Personality'
+ disk_format_command=' File System Personality: Journaled HFS+'
+ disk_format=': Journaled HFS+'
+ [[ : Journaled HFS+ == *APFS* ]]
+ [[ : Journaled HFS+ == *HFS* ]]
+ echo '\033[1;32mPatching Recovery partition...\033[0m'
Patching Recovery partition...
++ diskutil info 'Macintosh HD'
++ grep 'Device Identifier'
+ disk_path_command=' Device Identifier: disk0s2'
+ disk_path=': disk0s2'
+ disk_path=0s2
+ disk_path=disk0s2
++ diskutil info 'Macintosh HD'
++ grep 'Part of Whole'
+ disk_whole_command=' Part of Whole: disk0'
+ disk_whole=': disk0'
+ disk_whole=0
+ disk_whole=disk0
+ disk_number=2
+ disk_number=3
+ recovery_path=disk0s3
++ diskutil info disk0s3
++ grep 'Volume Name'
+ disk_name_command=' Volume Name: Recovery HD'
+ disk_name=': Recovery HD'
+ diskutil mount disk0s3
+ rm '/Volumes/Recovery HD/com.apple.recovery.boot/prelinkedkernel'
+ cp /System/Library/PrelinkedKernels/prelinkedkernel '/Volumes/Recovery HD/com.apple.recovery.boot'
+ rm '/Volumes/Recovery HD/com.apple.recovery.boot/PlatformSupport.plist'
+ echo '\033[1;32mPatched Recovery partition.\033[0m'
Patched Recovery partition.
+ echo '\033[1;32mUnmounting partitions...\033[0m'
Unmounting partitions...
+ [[ -d /Volumes/Preboot ]]
+ [[ -d /Volumes/Recovery ]]
+ [[ -d /Volumes/Recovery\ HD ]]
+ echo '\033[1;32mUnmounted partitions.\033[0m'
Unmounted partitions.
+ Allow_Input
+ stty echo
+ End_Script
+ echo '\033[3m\033[1;34mThank you for using my patch.\033[0m'
Thank you for using my patch.
+ Allow_Input
+ stty echo
+ exit
-bash-3.2#