1 | ########################################################################
|
---|
2 | #
|
---|
3 | # Description : 50-udev.rules
|
---|
4 | #
|
---|
5 | # Authors : Based on Open Suse Udev Rules
|
---|
6 | # kay.sievers@suse.de
|
---|
7 | #
|
---|
8 | # Adapted to : Jim Gifford
|
---|
9 | # LFS : Alexander E. Patrakov
|
---|
10 | #
|
---|
11 | # Version : 00.01
|
---|
12 | #
|
---|
13 | # Notes :
|
---|
14 | #
|
---|
15 | ########################################################################
|
---|
16 |
|
---|
17 | # block devices
|
---|
18 | SUBSYSTEM=="block", GROUP="disk", MODE="0640"
|
---|
19 |
|
---|
20 | # console
|
---|
21 | KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
22 | KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
23 | KERNEL=="vcs*", GROUP="tty", MODE="620", OPTIONS="last_rule"
|
---|
24 | KERNEL=="tty", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
25 | KERNEL=="tty[0-9]*", GROUP="tty", MODE="620", OPTIONS="last_rule"
|
---|
26 | KERNEL=="console", MODE="600", OPTIONS="last_rule"
|
---|
27 | KERNEL=="ptmx", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
28 |
|
---|
29 | # serial devices
|
---|
30 | KERNEL=="tty[A-Z]*|pppox*|ircomm*|noz*", GROUP="uucp"
|
---|
31 | KERNEL=="mwave", NAME="modems/%k", GROUP="uucp"
|
---|
32 | KERNEL=="hvc*|hvsi*", GROUP="uucp"
|
---|
33 | KERNEL=="iseries/vtty*", GROUP="uucp"
|
---|
34 | KERNEL=="ttyUSB*", ATTRS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
|
---|
35 | KERNEL=="ttyUSB*", ATTRS{product}=="[Hh]andspring*Treo*|[Hh]andspring*Visor*", SYMLINK+="pilot"
|
---|
36 |
|
---|
37 | # video/graphics
|
---|
38 | SUBSYSTEM=="video4linux", GROUP="video"
|
---|
39 | SUBSYSTEM=="graphics" GROUP="video"
|
---|
40 | KERNEL=="vtx*|vbi*", GROUP="video"
|
---|
41 | KERNEL=="winradio*", GROUP="video"
|
---|
42 | KERNEL=="vttuner*", GROUP="video"
|
---|
43 | KERNEL=="nvidia*|nvidiactl*", GROUP="video"
|
---|
44 | KERNEL=="video0", SYMLINK+="video"
|
---|
45 | KERNEL=="radio0", SYMLINK+="radio"
|
---|
46 | KERNEL=="vbi0", SYMLINK+="vbi"
|
---|
47 | KERNEL=="pmu", GROUP="video"
|
---|
48 |
|
---|
49 | # dvb
|
---|
50 | SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
|
---|
51 |
|
---|
52 | # input devices
|
---|
53 | KERNEL=="mouse*|mice", NAME="input/%k", MODE="0640"
|
---|
54 | KERNEL=="event*", NAME="input/%k", MODE="0640"
|
---|
55 | KERNEL=="js*", NAME="input/%k", MODE="0644"
|
---|
56 | KERNEL=="ts*", NAME="input/%k", MODE="0600"
|
---|
57 | KERNEL=="uinput", NAME="input/%k", MODE="0600"
|
---|
58 | KERNEL=="lirc0", SYMLINK+="lirc"
|
---|
59 |
|
---|
60 | # printer
|
---|
61 | SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
|
---|
62 | SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp"
|
---|
63 | KERNEL=="irlpt*", GROUP="lp"
|
---|
64 |
|
---|
65 | # cpu devices
|
---|
66 | KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid"
|
---|
67 | KERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
|
---|
68 | KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
|
---|
69 |
|
---|
70 | # IEEE1394 devices
|
---|
71 | KERNEL=="raw1394*", GROUP="video"
|
---|
72 | KERNEL=="dv1394*", SYMLINK+="dv1394/%n", GROUP="video"
|
---|
73 | KERNEL=="video1394*", SYMLINK+="video1394/%n", GROUP="video"
|
---|
74 |
|
---|
75 | # 183 = /dev/hwrng Generic random number generator
|
---|
76 | KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
|
---|
77 |
|
---|
78 | # 219 /dev/modems/mwave MWave modem firmware upload
|
---|
79 | KERNEL=="mwave", NAME="modems/%k"
|
---|
80 |
|
---|
81 | # 169 /dev/specialix_rioctl Specialix RIO serial control
|
---|
82 | KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
|
---|
83 |
|
---|
84 | # 167 /dev/specialix_sxctl Specialix serial control
|
---|
85 | KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
|
---|
86 |
|
---|
87 | # network
|
---|
88 | KERNEL=="tun", NAME="net/%k", MODE="0600"
|
---|
89 |
|
---|
90 | # misc devices
|
---|
91 | KERNEL=="mem|kmem", GROUP="kmem", MODE="640"
|
---|
92 | KERNEL=="port", GROUP="kmem", MODE="640"
|
---|
93 | KERNEL=="nvram", GROUP="kmem", MODE="600"
|
---|
94 | KERNEL=="null", MODE="666"
|
---|
95 | KERNEL=="zero", MODE="666"
|
---|
96 | KERNEL=="full", MODE="622"
|
---|
97 | KERNEL=="random", MODE="666"
|
---|
98 | KERNEL=="urandom", MODE="644"
|
---|
99 | KERNEL=="rtc", GROUP="audio"
|
---|
100 | KERNEL=="sonypi", MODE="666"
|
---|
101 | KERNEL=="agpgart", MODE="600", GROUP="video"
|
---|
102 | KERNEL=="djs*", MODE="644"
|
---|
103 | KERNEL=="sgi_*", MODE="666"
|
---|
104 | KERNEL=="rrom*", MODE="400"
|
---|
105 | KERNEL=="rflash*", MODE="400"
|
---|
106 | KERNEL=="usbscanner*", MODE="644"
|
---|
107 | KERNEL=="3270/ttycons*", MODE="600"
|
---|
108 | KERNEL=="3270/tub*", MODE="666"
|
---|
109 | KERNEL=="3270/tubcons*", MODE="600"
|
---|
110 | KERNEL=="ica", MODE="666"
|
---|
111 | KERNEL=="z90crypt", MODE="666"
|
---|
112 | KERNEL=="mmtimer", MODE="444"
|
---|
113 | KERNEL=="auer[0-9]*" NAME="usb/%k"
|
---|
114 |
|
---|
115 | # packet writing interface
|
---|
116 | KERNEL=="pktcdvd", NAME="pktcdvd/control"
|
---|
117 | KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
|
---|
118 |
|
---|
119 | # fix floppy devices
|
---|
120 | KERNEL=="fd[0-9]*", ACTION=="add", GROUP="floppy", MODE="660"
|
---|
121 | KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
|
---|
122 |
|
---|
123 | # sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
|
---|
124 | # sr: 4 TYPE_WORM, 5 TYPE_ROM
|
---|
125 | # st/osst: 1 TYPE_TAPE
|
---|
126 | ACTION=="add", SUBSYSTEM=="scsi" , ATTR{type}=="0|7|14", ATTR{timeout}="60"
|
---|
127 | ACTION=="add", SUBSYSTEM=="scsi" , ATTR{type}=="1", ATTR{timeout}="900"
|
---|
128 |
|
---|
129 | # misc storage devices (non-block)
|
---|
130 | KERNEL=="sg*", GROUP="disk", MODE="640"
|
---|
131 | KERNEL=="sr*", GROUP="cdrom", MODE="660"
|
---|
132 | KERNEL=="st*", GROUP="tape"
|
---|
133 | KERNEL=="nst*", GROUP="tape"
|
---|
134 | KERNEL=="initrd", GROUP="disk"
|
---|
135 | KERNEL=="qft*", GROUP="tape"
|
---|
136 | KERNEL=="nqft*", GROUP="tape"
|
---|
137 | KERNEL=="zqft*", GROUP="tape"
|
---|
138 | KERNEL=="nzqft*", GROUP="tape"
|
---|
139 | KERNEL=="rawqft*", GROUP="tape"
|
---|
140 | KERNEL=="nrawqft*", GROUP="tape"
|
---|
141 | KERNEL=="pf*", GROUP="disk"
|
---|
142 | KERNEL=="sch*", GROUP="disk"
|
---|
143 | KERNEL=="pt*", GROUP="tape"
|
---|
144 | KERNEL=="npt*", GROUP="tape"
|
---|
145 | KERNEL=="pg*", GROUP="disk"
|
---|
146 | KERNEL=="evms/block_device*", GROUP="disk"
|
---|
147 | KERNEL=="rawctl*", GROUP="disk"
|
---|
148 | SUBSYSTEM=="block", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
|
---|
149 | KERNEL=="osst*|nosst*", GROUP="tape"
|
---|
150 | KERNEL=="iseries/vt*", GROUP="disk"
|
---|
151 | KERNEL=="iseries/nvt*", GROUP="disk"
|
---|
152 | KERNEL=="iseries/ibmsis*", GROUP="disk"
|
---|
153 |
|
---|
154 | # libusb device access
|
---|
155 | SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0660", GROUP="usb"
|
---|