Udev USB device class links

Dan Nicholson dbn.lists at gmail.com
Thu Jul 26 09:04:55 PDT 2007


The 2.6.22 kernel (maybe 2.6.21 too, didn't check) has an option
CONFIG_USB_DEVICE_CLASS that's marked as deprecated. The help text
states that it is unnecessary if the following udev rule is used:

SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", \
    NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}"

I checked the SuSE rules in udev-111, and this is in addition to the
existing usb_device rule:

SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'X=%k; X=$${X#usbdev};
B=$${X%%%%.*} D=$${X#*.}; echo bus/usb/$$B/$$D'", NAME="%c"

Does anyone have a problem if I add that to our rules?

--
Dan



More information about the lfs-dev mailing list