On Dec 31, Joey Hess <[EMAIL PROTECTED]> wrote:

> Is there any good way to map from a given device (or set of related
> devices) in /dev to a udev rule that will match and allow overriding
> only that device?
For the general case, no: e.g. compare udevinfo -a -p /sys/block/hda and
udevinfo -a -p /sys/class/sound/dsp .
But you can break it up in enough special cases which individually are
easily tractable, e.g. by looking at $ENV{ID_PATH} for block devices,
hardware IDs for PCI and USB devices, etc.

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature

Reply via email to