Change ProductName to MacBookAir7,2 , Remove VoodooHDA, Using AppleALC.
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>Label</key>
|
||||
<string>good.win.ALCPlugFix</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/bin/ALCPlugFix</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>ServiceIPC</key>
|
||||
<false/>
|
||||
<!--Shuold be directory that hda-verb at-->
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/usr/bin/</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Executable
BIN
Binary file not shown.
Executable
+41
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
DAEMON_PATH=/Library/LaunchDaemons/
|
||||
BIN_PATH=/usr/bin/
|
||||
DAEMON_FILE=good.win.ALCPlugFix.plist
|
||||
VERB_FILE=hda-verb
|
||||
FIX_FILE=ALCPlugFix
|
||||
|
||||
echo "Installing ALCPlugFix. Root user is required."
|
||||
|
||||
# check if the root filesystem is writeable (starting with macOS 10.15 Catalina, the root filesystem is read-only by default)
|
||||
if sudo test ! -w "/"; then
|
||||
echo "Root filesystem is not writeable. Remounting as read-write and restarting Finder."
|
||||
sudo mount -uw /
|
||||
sudo killall Finder
|
||||
fi
|
||||
|
||||
# stop the daemon if it's already running
|
||||
if sudo launchctl list | grep --quiet ALCPlugFix; then
|
||||
echo "Stopping existing ALCPlugFix daemon."
|
||||
sudo launchctl unload $DAEMON_PATH$DAEMON_FILE
|
||||
fi
|
||||
|
||||
# copy over the files to their respective locations (overwrite automatically if files exist)
|
||||
sudo cp -f ALCPlugFix $BIN_PATH
|
||||
sudo cp -f hda-verb $BIN_PATH
|
||||
sudo cp -f good.win.ALCPlugFix.plist $DAEMON_PATH
|
||||
|
||||
# set permissions and ownership
|
||||
sudo chmod 755 $BIN_PATH$FIX_FILE
|
||||
sudo chown $USER:admin $BIN_PATH$FIX_FILE
|
||||
sudo chmod 755 $BIN_PATH$VERB_FILE
|
||||
sudo chown $USER:admin $BIN_PATH$VERB_FILE
|
||||
sudo chmod 644 $DAEMON_PATH$DAEMON_FILE
|
||||
sudo chown root:wheel $DAEMON_PATH$DAEMON_FILE
|
||||
|
||||
# load and start the daemon
|
||||
sudo launchctl load -w $DAEMON_PATH$DAEMON_FILE
|
||||
|
||||
echo "Done!"
|
||||
exit 0
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Uninstalling ALCPlugFix. Root user is required."
|
||||
|
||||
# check if the root filesystem is writeable (starting with macOS 10.15 Catalina, the root filesystem is read-only by default)
|
||||
if sudo test ! -w "/"; then
|
||||
echo "Root filesystem is not writeable. Remounting as read-write and restarting Finder."
|
||||
sudo mount -uw /
|
||||
sudo killall Finder
|
||||
fi
|
||||
|
||||
sudo rm /usr/bin/ALCPlugFix
|
||||
sudo rm /usr/bin/hda-verb
|
||||
sudo launchctl unload -w /Library/LaunchDaemons/good.win.ALCPlugFix.plist
|
||||
sudo launchctl remove good.win.ALCPlugFix
|
||||
sudo rm /Library/LaunchDaemons/good.win.ALCPlugFix.plist
|
||||
|
||||
echo "Done!"
|
||||
exit 0
|
||||
Reference in New Issue
Block a user