[sllug-members]: udev question

Duck duck at xmission.com
Thu Dec 21 14:47:53 MST 2006


Lamont Peterson wrote:

> Don't modify that file.  Although the name may differ from one distribution to 
> another, the 50-udev-default.rules file is supplied by the distribution.  
> From time to time, an update will replace it, obliterating your changes.  
> Instead, create an earlier file (udev stops walking through rules files on 
> it's first match).  I create a file called 10-local.rules or 
> 10-`hostname`.rules to put my local rules in.

I agree that you shouldn't modify the files that come from
the distro.  However, I believe that udev applies *all* the rules
that match, in the order in which they're found, reading
each of the files in lexical order.  It looks like the
OPTIONS="last_rule" specification stops further rules from
being applied.

I've stuck new rules in a new file, and for me it was most
helpful to add the rules after everything else had run, so
mine are in a 99-local.rules file.  YMMV.

Cheers,
--duck


More information about the sllug-members mailing list