20 lines
615 B
Bash
Executable File
20 lines
615 B
Bash
Executable File
#!/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/com.echo.ALCPlugFix.plist
|
|
sudo launchctl remove com.echo.ALCPlugFix
|
|
sudo rm /Library/LaunchDaemons/com.echo.ALCPlugFix.plist
|
|
|
|
echo "Done!"
|
|
exit 0
|