1 | # /etc/udev/rules.d/25-lfs.rules: Rule definitions for LFS.
|
---|
2 |
|
---|
3 | # Create the /dev/cdrom symlink.
|
---|
4 |
|
---|
5 | BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
|
---|
6 |
|
---|
7 | # Core kernel devices
|
---|
8 |
|
---|
9 | KERNEL="ptmx", GROUP="tty", MODE="0666"
|
---|
10 | KERNEL="random", MODE="0444"
|
---|
11 | KERNEL="urandom", MODE="0444"
|
---|
12 | KERNEL="kmem", GROUP="kmem", MODE="0640"
|
---|
13 | KERNEL="mem", GROUP="kmem", MODE="0640"
|
---|
14 | KERNEL="port", GROUP="kmem", MODE="0640"
|
---|
15 | KERNEL="null", MODE="0666"
|
---|
16 | KERNEL="zero", MODE="0666"
|
---|
17 | KERNEL="full", MODE="0666"
|
---|
18 | KERNEL="aio", MODE="0444"
|
---|
19 | KERNEL="kmsg", MODE="0600"
|
---|
20 | KERNEL="rtc", MODE="0666"
|
---|
21 |
|
---|
22 | # Comms devices
|
---|
23 |
|
---|
24 | KERNEL="ttyS[0-9]*", GROUP="dialout"
|
---|
25 | KERNEL="ttyUSB[0-9]*", GROUP="dialout"
|
---|
26 | KERNEL="rfcomm[0-9]*", GROUP="dialout"
|
---|
27 | KERNEL="tty[BCDEFHILMPRSTUVWX][0-9]*", GROUP="dialout"
|
---|
28 | KERNEL="ttyS[ACIR][0-9]*", GROUP="dialout"
|
---|
29 | KERNEL="ttyUSB[0-9]*", GROUP="dialout"
|
---|
30 | KERNEL="ttyACM[0-9]*", GROUP="dialout"
|
---|
31 | KERNEL="ippp[0-9]*", GROUP="dialout"
|
---|
32 | KERNEL="isdn[0-9]*", GROUP="dialout"
|
---|
33 | KERNEL="isdnctrl[0-9]*", GROUP="dialout"
|
---|
34 | KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20"
|
---|
35 | KERNEL="capi*", NAME="capi/%n", GROUP="dialout"
|
---|
36 | KERNEL="dcbri[0-9]*", GROUP="dialout"
|
---|
37 | KERNEL="ircomm[0-9]*", GROUP="dialout"
|
---|
38 |
|
---|
39 | # TTY's
|
---|
40 |
|
---|
41 | KERNEL="tty", GROUP="tty", MODE="0666"
|
---|
42 | KERNEL="tty[0-9]*", GROUP="tty", MODE="0666"
|
---|
43 | KERNEL="vcs*", MODE="0600"
|
---|
44 | KERNEL="console", GROUP="tty", MODE="0622"
|
---|
45 |
|
---|
46 | # ALSA devices go in their own subdirectory
|
---|
47 |
|
---|
48 | KERNEL="controlC[0-9]*", NAME="snd/%k", GROUP="audio"
|
---|
49 | KERNEL="hw[CD0-9]*", NAME="snd/%k", GROUP="audio"
|
---|
50 | KERNEL="pcm[CD0-9cp]*", NAME="snd/%k", GROUP="audio"
|
---|
51 | KERNEL="midiC[D0-9]*", NAME="snd/%k", GROUP="audio"
|
---|
52 | KERNEL="timer", NAME="snd/%k", GROUP="audio"
|
---|
53 | KERNEL="seq", NAME="snd/%k", GROUP="audio"
|
---|
54 |
|
---|
55 | # Sound devices
|
---|
56 |
|
---|
57 | KERNEL="admmidi*", GROUP="audio"
|
---|
58 | KERNEL="adsp*", GROUP="audio"
|
---|
59 | KERNEL="aload*", GROUP="audio"
|
---|
60 | KERNEL="amidi*", GROUP="audio"
|
---|
61 | KERNEL="amixer*", GROUP="audio"
|
---|
62 | KERNEL="audio*", GROUP="audio"
|
---|
63 | KERNEL="dmfm*", GROUP="audio"
|
---|
64 | KERNEL="dmmidi*", GROUP="audio"
|
---|
65 | KERNEL="dsp*", GROUP="audio"
|
---|
66 | KERNEL="midi*", GROUP="audio"
|
---|
67 | KERNEL="mixer*", GROUP="audio"
|
---|
68 | KERNEL="music", GROUP="audio"
|
---|
69 | KERNEL="sequencer*", GROUP="audio"
|
---|
70 |
|
---|
71 | # Printing devices
|
---|
72 |
|
---|
73 | KERNEL="lp[0-9]*", GROUP="lp"
|
---|
74 | KERNEL="parport[0-9]*", GROUP="lp"
|
---|
75 | KERNEL="irlpt[0-9]*", GROUP="lp"
|
---|
76 |
|
---|
77 | # Input devices go in their own subdirectory
|
---|
78 |
|
---|
79 | KERNEL="mice", NAME="input/%k", MODE="0644"
|
---|
80 | KERNEL="mouse*", NAME="input/%k", MODE="0644", SYMLINK="mouse"
|
---|
81 | KERNEL="event*", NAME="input/%k", MODE="0644"
|
---|
82 | KERNEL="js*", NAME="input/%k", MODE="0644"
|
---|
83 | KERNEL="ts*", NAME="input/%k", MODE="0644"
|
---|
84 |
|
---|
85 | KERNEL="psaux", MODE="0644"
|
---|
86 | KERNEL="js", MODE="0644"
|
---|
87 | KERNEL="djs", MODE="0644"
|
---|
88 |
|
---|
89 | # USB devices go in their own subdirectory
|
---|
90 |
|
---|
91 | KERNEL="hiddev*", NAME="usb/%k"
|
---|
92 | KERNEL="auer*", NAME="usb/%k"
|
---|
93 | KERNEL="legousbtower*", NAME="usb/%k"
|
---|
94 | KERNEL="dabusb*", NAME="usb/%k"
|
---|
95 | BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k", GROUP="lp"
|
---|
96 |
|
---|
97 | # DRI devices go in their own subdirectory for FHS compliance
|
---|
98 |
|
---|
99 | KERNEL="card*", NAME="dri/card%n", GROUP="video"
|
---|
100 |
|
---|
101 | # Video devices
|
---|
102 |
|
---|
103 | KERNEL="fb[0-9]*", GROUP="video", MODE="0620"
|
---|
104 | KERNEL="agpgart", GROUP="video"
|
---|
105 | KERNEL="nvidia[0-9]*", GROUP="video"
|
---|
106 | KERNEL="nvidiactl", GROUP="video"
|
---|
107 | KERNEL="video[0-9]*", GROUP="video"
|
---|
108 | KERNEL="radio[0-9]*", GROUP="video"
|
---|
109 | KERNEL="vbi[0-9]*", GROUP="video"
|
---|
110 | KERNEL="vtx[0-9]*", GROUP="video"
|
---|
111 |
|
---|
112 | # Storage/memory devices
|
---|
113 |
|
---|
114 | KERNEL="fd[0-9]*", GROUP="floppy"
|
---|
115 | KERNEL="ram[0-9]*", GROUP="disk"
|
---|
116 | KERNEL="raw[0-9]*", NAME="raw/%k", GROUP="disk"
|
---|
117 | KERNEL="hd*", GROUP="disk"
|
---|
118 | KERNEL="sd[a-z]", GROUP="disk"
|
---|
119 | KERNEL="sd[a-z][0-9]*", GROUP="disk"
|
---|
120 | KERNEL="sd[a-i][a-z]", GROUP="disk"
|
---|
121 | KERNEL="sd[a-i][a-z][0-9]*", GROUP="disk"
|
---|
122 | KERNEL="s[grt][0-9]*", GROUP="disk"
|
---|
123 | KERNEL="scd[0-9]*", GROUP="cdrom"
|
---|
124 | KERNEL="dasd[0-9]*", GROUP="disk"
|
---|
125 | KERNEL="ataraid[0-9]*", GROUP="disk"
|
---|
126 | KERNEL="loop[0-9]*", GROUP="disk"
|
---|
127 | KERNEL="md[0-9]*", GROUP="disk"
|
---|
128 | KERNEL="dm-*", GROUP="disk", MODE="0640"
|
---|
129 | KERNEL="ht[0-9]*", GROUP="tape"
|
---|
130 | KERNEL="nht[0-9]*", GROUP="tape"
|
---|
131 | KERNEL="pt[0-9]*", GROUP="tape"
|
---|
132 | KERNEL="npt[0-9]*", GROUP="tape"
|
---|
133 | KERNEL="st[0-9]*", GROUP="tape"
|
---|
134 | KERNEL="nst[0-9]*", GROUP="tape"
|
---|
135 | KERNEL="iseries/vcd*", GROUP="disk"
|
---|
136 | KERNEL="iseries/vd*", GROUP="disk"
|
---|
137 |
|
---|
138 | # Network devices
|
---|
139 |
|
---|
140 | KERNEL="tun", NAME="net/%k"
|
---|