1 | # /etc/udev/rules.d/00-lfs.rules: Rule definitions for LFS.
|
---|
2 |
|
---|
3 | # Create the /dev/cdrom symlink.
|
---|
4 | BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
|
---|
5 |
|
---|
6 | # DRI devices always go into a subdirectory (as per the LSB spec).
|
---|
7 | KERNEL="card*", NAME="dri/card%n"
|
---|
8 |
|
---|
9 | # ALSA devices get into /dev/snd/.
|
---|
10 | KERNEL="controlC[0-9]*",NAME="snd/%k"
|
---|
11 | KERNEL="hw[CD0-9]*", NAME="snd/%k"
|
---|
12 | KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
|
---|
13 | KERNEL="midiC[D0-9]*", NAME="snd/%k"
|
---|
14 | KERNEL="timer", NAME="snd/%k"
|
---|
15 | KERNEL="seq", NAME="snd/%k"
|
---|
16 |
|
---|
17 | # Input core devices go into /dev/input/.
|
---|
18 | KERNEL="mice", NAME="input/%k"
|
---|
19 | KERNEL="mouse*", NAME="input/%k"
|
---|
20 | KERNEL="event*", NAME="input/%k"
|
---|
21 | KERNEL="js*", NAME="input/%k"
|
---|
22 | KERNEL="ts*", NAME="input/%k"
|
---|
23 |
|
---|
24 | # Assorted USB devices get a subdir as well.
|
---|
25 | KERNEL="hiddev*", NAME="usb/%k"
|
---|
26 | KERNEL="auer*", NAME="usb/%k"
|
---|
27 | KERNEL="legousbtower*", NAME="usb/%k"
|
---|
28 | KERNEL="dabusb*", NAME="usb/%k"
|
---|
29 | BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
|
---|
30 |
|
---|
31 | # CAPI devices
|
---|
32 | KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20"
|
---|
33 | KERNEL="capi*", NAME="capi/%n"
|
---|
34 |
|
---|
35 | # Network devices
|
---|
36 | KERNEL="tun", NAME="net/%k"
|
---|
37 |
|
---|
38 | # raw devices
|
---|
39 | KERNEL="raw[0-9]*", NAME="raw/%k"
|
---|