On Fri, Sep 10, 2010 at 17:14, Ludovic Rousseau <ludovic.rousseau@xxxxxxxxx> wrote: > 2010/9/9 Kay Sievers <kay.sievers@xxxxxxxx>: >> Udev parses the usb descriptors and makes them available in a >> property. That's the only way to access usb_interface properties from >> the usb_device event. >> >> Something like: >> SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}="*:0b0000:*", GROUP= ... >> should do it. > > It works but is not what I need. > - Why do you use = instead of == for ENV{ID_USB_INTERFACES}? I want to > check the value of ID_USB_INTERFACES, not set it. > - Why use "*" in "*:0b0000:*"? > > Instead I used a == > SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0b0000:*", GROUP="pcscd" > or > SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}==":0b0000:", GROUP="pcscd" > But it does not work :-( Sure, it should be ==. Make sure that your rule file sorts after 50-udev-default-rules, which calls usb_id, and sets this property. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html