[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dependencies on makedev



On Dec 31, Joey Hess <joeyh@debian.org> 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 to: