chiark / gitweb /
725294cede9ea80f3409e9697a64f4883eb0a30d
[elogind.git] / etc / udev / udev.rules
1 # There are a number of modifiers that are allowed to be used in some of the
2 # fields.  See the udev man page for a full description of them.
3 #
4 # See the udev.rules.examples file for more examples of how to create rules
5 #
6
7 # if this is a ide cdrom, name it the default name, and create a symlink to cdrom
8 BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
9
10 # create a symlink named after the device map name
11 # note devmap_name comes with extras/multipath
12 KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
13
14 # DRI devices always go into a subdirectory (as per the LSB spec)
15 KERNEL="card*", NAME="dri/card%n"
16
17 # alsa devices
18 KERNEL="controlC[0-9]*", NAME="snd/%k"
19 KERNEL="hw[CD0-9]*",     NAME="snd/%k"
20 KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
21 KERNEL="midiC[D0-9]*",   NAME="snd/%k"
22 KERNEL="timer",          NAME="snd/%k"
23 KERNEL="seq",            NAME="snd/%k"
24
25 # input devices
26 KERNEL="mice",          NAME="input/%k"
27 KERNEL="mouse*",        NAME="input/%k"
28 KERNEL="event*",        NAME="input/%k"
29 KERNEL="js*",           NAME="input/%k"
30 KERNEL="ts*",           NAME="input/%k"
31