On 5/30/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote:
Richard,
You said that one rule can override other, but if you read udev
manual ( http://www.reactivated.net/writing_udev_rules.html ), you'll
realize that what you said I think is incorrect.
That is _not_ the "udev manual". I've also found that page to be
frequently out of date (it still listed the comparison operator as '='
instead of '==' for months after that changed).
From "man udev":
:= Assign a value to a key finally; disallow any later changes,
which may be used to prevent changes by any later rules.
And from /usr/share/doc/udev-*/RELEASE-NOTES.gz:
<quote>
udev 059
========
...
o The rule keys support now more operations. This is documented in the
man page. It is possible to add values to list-keys like the SYMLINK
and RUN list with KEY+="value" and to clear the list by assigning KEY="".
Also "final"-assignments are supported by using KEY:="value", which will
prevent changing the key by any later rule.
...
udev 057
========
All rules are applied now, but only the first matching rule with a NAME-key
will be applied. All later rules with NAME-key are completely ignored. This
way system supplied symlinks or permissions gets applied to user-defined
naming rules.
</quote>
So it looks like I am wrong about needing the := syntax when your rule
assigns the NAME. I just tested the behavior with udev-090 and my USB
flash drive, and it works as the RELEASE-NOTES say. But I also had a
problem with naming my input devices that was fixed with the :=
syntax.
-Richard
--
gentoo-user@gentoo.org mailing list