#!/bin/sh DRIVER="/System/Library/Extensions/ProlificUsbSerial.kext" # Check if the driver is installed. if [ ! -e "$DRIVER/Contents/Info.plist" ]; then echo "Please install the Prolific driver first!" 1>&2 exit 1 fi # Patch the driver. patch --silent --backup -d "$DRIVER/Contents" -p0 <<'eof' --- Info.plist +++ Info.plist @@ -41,6 +41,40 @@ idVendor 1659 + 04B8_0521 + + CFBundleIdentifier + com.prolific.driver.PL2303 + IOClass + com_prolific_driver_PL2303 + IOProviderClass + IOUSBInterface + bConfigurationValue + 1 + bInterfaceNumber + 0 + idProduct + 1313 + idVendor + 1208 + + 04B8_0522 + + CFBundleIdentifier + com.prolific.driver.PL2303 + IOClass + com_prolific_driver_PL2303 + IOProviderClass + IOUSBInterface + bConfigurationValue + 1 + bInterfaceNumber + 0 + idProduct + 1314 + idVendor + 1208 + OSBundleLibraries EOF if [ $? -ne 0 ]; then echo "Patching the driver failed!" 1>&2 exit 1 fi # Force an update of the kext cache. touch "/System/Library/Extensions" # Reload the driver. kextunload "$DRIVER" kextload "$DRIVER"

AltStyle によって変換されたページ (->オリジナル) /