X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev%2Fudev.xml;h=6085dfff24e4db76170548854e068657d556147a;hp=20c394c28b75fd13313a5dce3c2f292277e706fd;hb=83184d008ba23724fd30996440534c0633a0d0aa;hpb=3b529da42586aa430bb0d03800b19dd45552eae1 diff --git a/udev/udev.xml b/udev/udev.xml index 20c394c28..6085dfff2 100644 --- a/udev/udev.xml +++ b/udev/udev.xml @@ -75,12 +75,13 @@ the custom rules directory /etc/udev/rules.d/ and the temporary rules directory /dev/.udev/rules.d/. All rule files are sorted and processed in lexical order, regardless - in which of these directories they live. + in which of these directories they live. Files in + /etc/udev/rules.d/ have precedence over files with + the same name in /lib/udev/rules.d/. This can be + used to ignore a default rules file if needed. - Rule files are required to have a unique name, duplicate file names - are ignored. Files in /etc/udev/rules.d/ have precedence - over files with the same name in /lib/udev/rules.d/. This - can be used to ignore a default rules file if needed. + Rule files must end in .rules, other extensions + are ignored. Every line in the rules file contains at least one key value pair. There are two kind of keys, match and assignment keys. @@ -577,8 +578,9 @@ The value of a sysfs attribute found at the device, where all keys of the rule have matched. If the matching device does not have - such an attribute, follow the chain of parent devices and use the value - of the first attribute that matches. + such an attribute, and a previous KERNELS, SUBSYSTEMS, DRIVERS, or + ATTRS test selected a parent device, use the attribute from that + parent device. If the attribute is a symlink, the last element of the symlink target is returned as the value.