Created
December 2, 2014 21:05
-
-
Save timsutton/e60473ef2999ea0b8414 to your computer and use it in GitHub Desktop.
M-Audio USB Midi Support uninstall script
This file contains hidden or 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
| #! /bin/bash -p | |
| IFS= | |
| PATH=/bin:/usr/bin | |
| # ================================================================================ | |
| # MIDI Plugin | |
| # ================================================================================ | |
| /bin/echo "Removing MIDI plug-in /Library/Audio/MIDI Drivers/M-Audio USB Support.plugin." | |
| /bin/rm -rf /Library/Audio/MIDI\ Drivers/M-Audio\ USB\ Support.plugin | |
| /bin/echo "Removing Firmware Loader Launcher /Library/LaunchDaemons/com.m-audio.usb.firmwareloader.plist." | |
| /bin/rm -f /Library/LaunchDaemons/com.m-audio.usb.firmwareloader.plist | |
| # ================================================================================ | |
| # MIDI kext | |
| # ================================================================================ | |
| /bin/echo "Removing MIDI kernel extension /System/Library/Extensions/M-AudioUSBMIDISupport.kext." | |
| /bin/rm -rf /System/Library/Extensions/M-AudioUSBMIDISupport.kext | |
| /bin/echo "Removing MIDI kernel extension /Library/Extensions/M-AudioUSBMIDISupport.kext." | |
| /bin/rm -rf /Library/Extensions/M-AudioUSBMIDISupport.kext | |
| # ================================================================================ | |
| # Firmware Loader | |
| # ================================================================================ | |
| /bin/echo "Removing Firmware Loader /Library/StartupItems/M-Audio Firmware Loader." | |
| /bin/rm -rf /Library/StartupItems/M-Audio\ Firmware\ Loader | |
| # ================================================================================ | |
| # MIDI Devices | |
| # ================================================================================ | |
| if [ "${1}" ]; then | |
| "${1}" com.midiman.plugin.MIDISportLike | |
| "${1}" -r com.midiman.plugin.MIDISportLike | |
| fi | |
| # ================================================================================ | |
| # Remove installer receipts | |
| # ================================================================================ | |
| /bin/echo "Removing installer receipts." | |
| /bin/rm -rf /Library/Receipts/FirmwareLoader.pkg | |
| /bin/rm -rf /Library/Receipts/USB-MIDI-PlugIn.pkg | |
| /bin/rm -rf "/Library/Receipts/M-Audio USB MIDI Support.pkg" | |
| /bin/rm -rf "/Library/Receipts/com.m-audio.usbmidisupport.macos.installer.pkg" | |
| /bin/rm -rf "/Library/Receipts/com.m-audio.usbmidisupport.macos.installer_0.pkg" | |
| /bin/rm -rf /Library/Receipts/com.m-audio.usbmidisupport.macos.installer_0.bom | |
| /bin/rm -rf /Library/Receipts/com.m-audio.usbmidisupport.macos.installer_0.plist | |
| /bin/rm -rf /var/db/receipts/com.m-audio.usbmidisupport.macos.installer_0.bom | |
| /bin/rm -rf /var/db/receipts/com.m-audio.usbmidisupport.macos.installer_0.plist | |
| # ================================================================================ | |
| # wipe away preference files | |
| # ================================================================================ | |
| /bin/echo "Removing preference files." | |
| # Driver preferences | |
| rm -f /Users/Shared/Library/Preferences/com.maudio.usb.MIDISport.driver.plist | |
| rm -f /Library/Preferences/com.maudio.usb.MIDISport.driver.plist | |
| # ================================================================================ | |
| # Remove legacy files. | |
| # ================================================================================ | |
| /bin/rm -rf "/System/Library/Extensions/MIDISPORT.plugin" # Leigh's release? | |
| /bin/rm -rf "/Library/Audio/MIDI Drivers/MIDISPORT.plugin" # Leigh's release? | |
| /bin/rm -rf "/System/Library/Extensions/MM_USB_MIDI.plugin" # test release only? | |
| /bin/rm -rf "/Library/Audio/MIDI Drivers/MM_USB_MIDI.plugin" # test release only? | |
| /bin/rm -rf "/Library/Audio/MIDI Drivers/MIDIMAN-USB.plugin" # first official release (based on Leigh's code) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment