X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=docs%2Fwriting_udev_rules%2Findex.html;h=28274eef9228de59651d280a91ef0bbf3a555fc7;hp=7ca350635ddfcc98893dfc9553525441f682e630;hb=390312b8edd9834293d0a73e96eba1aa8e7a6520;hpb=e20294e018ee1a8e3e6a4f5977a23728fdc08c0f diff --git a/docs/writing_udev_rules/index.html b/docs/writing_udev_rules/index.html index 7ca350635..28274eef9 100644 --- a/docs/writing_udev_rules/index.html +++ b/docs/writing_udev_rules/index.html @@ -206,15 +206,11 @@ This works for all storage types. As an example, udev has created /dev/disk/

Rule files and semantics

-When deciding how to name a device and which additional actions to perform, udev reads a series of rules files. These files are kept in the /etc/udev/rules.d directory, and they all must have the .rules suffix. +When deciding how to name a device and which additional actions to perform, udev reads a series of rules files. These files are kept in the /etc/udev/rules.d and /lib/udev/rules.d directories, and they all must have the .rules suffix. If two files with the same name exist in both directories then only the one in /etc is used.

-Default udev rules are stored in /etc/udev/rules.d/50-udev.rules. You may find it interesting to look over this file - it includes a few examples, and then some default rules proving a devfs-style /dev layout. However, you should not write rules into this file directly. -

- -

-Files in /etc/udev/rules.d/ are parsed in lexical order, and in some circumstances, the order in which rules are parsed is important. In general, you want your own rules to be parsed before the defaults, so I suggest you create a file at /etc/udev/rules.d/10-local.rules and write all your rules into this file. +Files in the rules.d directories are parsed in lexical order, and in some circumstances, the order in which rules are parsed is important. In general, you want your own rules to be parsed before the defaults, so I suggest you create a file at /etc/udev/rules.d/10-local.rules and write all your rules into this file.