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

Manuel Reimer
2007-09-11T14:06:21Z

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