how to change udev rules in Fedora

Ed Greshko Ed.Greshko at greshko.com
Wed Jul 17 05:09:19 UTC 2013


On 07/17/13 12:32, lee wrote:
> Joe Zeff <joe at zeff.us> writes:
>
>> On 07/16/2013 08:39 PM, lee wrote:
>>> Thank you!  So I'll just copy the file I want to modify into
>>> /etc/udev/rules.d/  and delete everything I don't want to modify, that
>>> should work ...
>> Please let us know how this works.  I'm sure that there are others on
>> this list who could take advantage of the information.
> This won't work because when I delete everything else from the copy of
> the file and leave only what I want, it would mean that everything I
> might want will not be in effect because my copy of the file would
> wholly replace the file provided as default.
>
> So I can't do this.
>

Then try this.....

Make a new file with a new name in /etc/udev/rules.d with only your specific rules?  The one thing that isn't clear to me is if you should have a higher number or a lower number than a rule which may also match the condition you're trying to catch.  I can't tell, from the documentation, if rules processing stops when a match is made or if rules are processed in order such that the last match is what is used.

So, to me, the question would be what is more appropriate.   10-mystuff.rules or 99-mystuff.rules.

-- 
The only thing worse than a poorly asked question is a cryptic answer.


More information about the users mailing list