linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Udev rule $attr substitution
@ 2010-12-21 18:47 Josua Dietze
  2010-12-21 20:25 ` Josua Dietze
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Josua Dietze @ 2010-12-21 18:47 UTC (permalink / raw)
  To: linux-hotplug

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?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-26 14:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 18:47 Udev rule $attr substitution Josua Dietze
2010-12-21 20:25 ` Josua Dietze
2010-12-22  8:51 ` Martin Pitt
2010-12-22 11:35 ` Josua Dietze
2010-12-22 15:58 ` Martin Pitt
2010-12-22 17:40 ` Josua Dietze
2010-12-22 17:46 ` Kay Sievers
2010-12-26 14:59 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).