Attached patch against udev.7 of udev-124. Clarifies that the first match is used when $attr{} substitution searches through parent devices. Apply in udev-124 directory with: patch < /foo/udev.7-patch (Also, I didn't make the change, but shouldn't the last sentence of the patched paragraph be a new paragraph?) Karl <kop@xxxxxxxx> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein
--- ../../udev-124/udev.7 2008-06-12 00:24:30.000000000 -0500 +++ udev.7 2008-06-27 19:28:18.000000000 -0500 @@ -357,7 +357,7 @@ .PP \fB$attr{\fR\fB\fIfile\fR\fR\fB}\fR, \fB%s{\fR\fB\fIfile\fR\fR\fB}\fR .RS 4 -The value of a sysfs attribute found at the device, where all keys of the rule have matched\. If the matching device does not have such an attribute, all devices along the chain of parents are searched for a matching attribute\. If the attribute is a symlink, the last element of the symlink target is returned as the value\. +The value of a sysfs attribute found at the device, where all keys of the rule have matched\. If the matching device does not have such an attribute then follow the chain of parent devices and use the value of the first attribute that matches\. If the attribute is a symlink, the last element of the symlink target is returned as the value\. .RE .PP \fB$env{\fR\fB\fIkey\fR\fR\fB}\fR, \fB%E{\fR\fB\fIkey\fR\fR\fB}\fR