]>
Commit | Line | Data |
---|---|---|
3d6e1202 MT |
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 | ||
32 | # USB devices | |
33 | KERNEL="hiddev*", NAME="usb/%k" | |
34 | KERNEL="auer*", NAME="usb/%k" | |
35 | KERNEL="legousbtower*", NAME="usb/%k" | |
36 | KERNEL="dabusb*", NAME="usb/%k" | |
37 | BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k" | |
38 | ||
39 | # CAPI devices | |
40 | KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20" | |
41 | KERNEL="capi*", NAME="capi/%n" | |
42 | ||
43 | # Network devices | |
44 | KERNEL="tun", NAME="net/%k" | |
45 | ||
46 | # raw devices | |
47 | KERNEL="raw[0-9]*", NAME="raw/%k" |