X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev.xml;h=c740c0d80705c22b9167f80f1fb93a9b9e148264;hb=655a8acf920cd43356003b4499e545a7b2fcc402;hp=ac3676e4663e94a1daa9ef5f65eb7f5728e63487;hpb=bf50425b58da6f112197f79241dd6d64af2e9ea7;p=elogind.git diff --git a/udev.xml b/udev.xml index ac3676e46..c740c0d80 100644 --- a/udev.xml +++ b/udev.xml @@ -40,9 +40,9 @@ CONFIGURATION - All udev configuration files are placed in /etc/udev/*. - Every file consists of a set of lines of text. All empty lines or lines beginning - with '#' will be ignored. + udev configuration files are placed in /etc/udev/ + and /lib/udev/. All empty lines, or lines beginning with + '#' will be ignored. Configuration file udev expects its main configuration file at /etc/udev/udev.conf. @@ -57,16 +57,6 @@ - - - - The name of the udev rules file or directory to look for files - with the suffix .rules. Multiple rule files are - read in lexical order. The default value is - /etc/udev/rules.d. - - - @@ -80,8 +70,11 @@ Rules files The udev rules are read from the files located in the - /etc/udev/rules.d directory or at the location specified - value in the configuration file. Every line in the rules file contains at least + default rules directory /lib/udev/rules.d/, + 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. Every line in the rules file contains at least one key value pair. There are two kind of keys, match and assignment keys. If all match keys are matching against its value, the rule gets applied and the assign keys get the specified value assigned. @@ -159,6 +152,15 @@ + + + + Match the name of the node or network interface. It can + be used once the NAME key has been set in one of the preceding + rules. + + + @@ -394,10 +396,9 @@ - + - Wait for the specified sysfs file of the device to be created. Can be used - to fight against kernel sysfs timing issues. + Wait for a file to become available. @@ -430,7 +431,7 @@ Specify the priority of the created symlinks. Devices with higher - priorities overwrite existing symlinks of other devices. + priorities overwrite existing symlinks of other devices. The default is 0. @@ -462,7 +463,7 @@ The , , , - , and + , , and fields support simple printf-like string substitutions. The format chars gets applied after all rules have been processed, right before the program is executed. It allows the use of the complete environment set by earlier matching @@ -514,8 +515,8 @@ 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, all devices along the chain of parents are searched - for a matching attribute. + such an attribute, follow the chain of parent devices and use the value + of the first attribute that matches. If the attribute is a symlink, the last element of the symlink target is returned as the value.