Re: Udev rule $attr substitution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Never mind, I figured it out.

It was all a problem of not-quite-accurate man pages.

I found the man page (well, xml file) in the git tree and just added an ATTRS match to the top level USB device.

This worked:
KERNEL=="ttyUSB*", ATTRS{bNumConfigurations}=="*", RUN+="myprog %p %s{idVendor} %s{idProduct}"

Sorry for the noise, thanks anyway.

But I might add that there is certainly some documentation lacking on this one, practially everything I found was outdated or inaccurate ...


Josua Dietze
--
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


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux