Re: udev: Inconsistency between %b and %p?

From: Manuel Reimer
Date: Tue Sep 11 2007 - 10:06:23 EST


Kay Sievers wrote:
ATTRS{idVendor}=="0dda", ATTRS{idProduct}=="2005", SUBSYSTEM=="scsi",
ACTION=="add", PROGRAM+="/usr/bin/test.sh %b %p"

It's fine. $id, like some other values too, is a value of the device
where all keys successful matched while walking up the chain of
devices.

But the "SUBSYSTEM" didn't match for the USB-device.

I still don't know, what %b contains and in which situation the value in %b may help anyone.

Seems you are looking for the name of the device you received the
event for, so just use $kernel instead.

Yes, this did the job. Thanks for the hint.

CU

Manuel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/