On Fri, May 8, 2009 at 22:38, Filippo Argiolas <fargiolas@xxxxxxxxx> wrote: > On Fri, May 8, 2009 at 10:06 PM, Kay Sievers <kay.sievers@xxxxxxxx> wrote: > Seems fine to me. Actually I had some spare time this evening and come > up with a similar program myself :P > Glad to see I was almost right on the way to do it. Attaching it here, > feel free to choose the one you like most (yours seems more simple, > probably is better). > Mine lists the capability into a single variable like > ID_V4L_CAPS=capture:radio:tuner and it takes the device path as > argument just because I copied it from usb_id.c :) I've committed a merge of both versions. We can use the device node directly, so we don't need to look it up. I've used your all-in-one capability string, just added a leading and trailing ':", so matches can always use CAP == "*:capture:*" and can not get confused by other possible variables which start or end with the same string. We do this in other places like this already. Thanks, 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