--- hotplug.orig Mon Jan 8 08:58:20 2001 +++ hotplug Mon Jan 8 17:43:24 2001 @@ -132,6 +132,8 @@ PCI_MAP=$MODDIR/modules.pcimap USB_MAP=$MODDIR/modules.usbmap +USB_LOCAL_MAP=/etc/usb/usb-map.local + DRIVERS= #################################################################### @@ -207,7 +209,7 @@ # NOTE: this match algorithm is just a filter; some drivers need # to look at the device for reasons other than paranoia - while read module idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol ignored + while read module matchflag idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol ignored do : checkmatch $module @@ -362,6 +364,11 @@ if [ -f $2 ]; then $1_convert_vars $1_map_modules < $2 + if [ "$1" = "usb" ] ; then + if [ -f "$USB_LOCAL_MAP" ] ; then + usb_map_modules < $USB_LOCAL_MAP + fi + fi else mesg "$2 missing" exit 1