From 390312b8edd9834293d0a73e96eba1aa8e7a6520 Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Mon, 11 Jan 2010 11:55:50 +0100 Subject: [PATCH] writing_udev_rules: update rules files names --- docs/writing_udev_rules/index.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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.

-- 2.30.2