Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/sh | ||
# Maintained by: toleda for: github.com/toleda/audio_ALC889 | ||
# File: audio_alc889-94_patch,command_v1.0 | ||
# Credit: THeKiNG, VCH888, .:ErmaC:., bcc9, RevoGirl, PikeRAlpha, SJ_UnderWater | ||
# | ||
# OS X Realtek ALC889 Onboard Audio | ||
# | ||
# Enables OS X Realtek ALC889 onboard audio in Mountain Lion 10.9 and newer | ||
# 1. Patches native AppleHDA.kext installed in System/Library/Extensions | ||
# 2. Rename Desktop/audio_ALC889 to audio_ALC889-archive (if present) | ||
# 3. Verify Downloads/audio_ALC889-master present | ||
# | ||
# Installation | ||
# 1. Downloads/audio_ALC889-master/audio_alc889-94_patch.command | ||
# 2. Double click audio_alc889-94_patch.command | ||
# 3. Enter password at prompt | ||
# | ||
echo " " | ||
echo "Agreement" | ||
echo "The audio_ALC889_patch is for personal use only. Do not distribute the patch," | ||
echo "any or all of the enclosed files or the resulting patched AppleHDA.kext for any" | ||
echo "reason without permission. The audio_ALC889_patch is provided as is and without" | ||
echo "any kind of warranty." | ||
echo " " | ||
# | ||
echo "Prepare Desktop/audio_ALC889 ..." | ||
cd ~ | ||
rm -rf Desktop/audio_ALC889 | ||
cp -R Downloads/audio_ALC889-master Desktop/audio_ALC889 | ||
cp -R /System/Library/Extensions/AppleHDA.kext Desktop/audio_ALC889/AppleHDA-orig.kext | ||
cd Desktop/audio_ALC889 | ||
unzip -q 889.zip | ||
cd 889 | ||
|
||
echo "Install files ..." | ||
sudo rm -R /System/Library/Extensions/AppleHDA.kext/Contents/Plugins/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist | ||
sudo install -m 644 -o root -g wheel Info-94.plist /System/Library/Extensions/AppleHDA.kext/Contents/Plugins/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist | ||
sudo rm -R /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zlib | ||
sudo install -m 644 -o root -g wheel Platforms.xml.zlib layout1.xml.zlib layout2.xml.zlib layout3.xml.zlib /System/Library/Extensions/AppleHDA.kext/Contents/Resources | ||
|
||
echo "Patch binary ..." | ||
sudo perl -pi -e 's|\x8b\x19\xd4\x11|\x89\x08\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA | ||
|
||
echo "Fix permissions ..." | ||
sudo chown -R root:wheel /System/Library/Extensions/AppleHDA.kext | ||
|
||
echo "Kernel cache..." | ||
sudo touch /System/Library/Extensions | ||
|
||
cd ~ | ||
rm -R Desktop/audio_ALC889/889 | ||
cp -R /System/Library/Extensions/AppleHDA.kext Desktop/audio_ALC889/AppleHDA.kext | ||
|
||
echo "Finished, restart required." |