source: scripts/configs/udev/udev-config-3.rules@ b86c99e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b86c99e was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

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