Udev rule $attr substitution

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

 



Hi, everyone!

I'm scratching my head over this:

Rule line:
KERNEL=="ttyUSB*" RUN+="myprog %p %s{idVendor} %s{idProduct}"

%p expands to something like:
/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.2/ttyUSB2/tty/ttyUSB2

But the %s (or $attr) format string will not be substituted with anything when using udev version 157. The same rule works fine with version 125.

When doing the attribute walk with "udevadm info", the attributes are of course found in the parent chain.

Did I miss something?
--
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