From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josua Dietze Date: Tue, 21 Dec 2010 18:47:27 +0000 Subject: Udev rule $attr substitution Message-Id: <4D10F63F.9030005@draisberghof.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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?