source: udev/50-udev.rules@ 1e414b9

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

r3172@server: jim | 2006-04-28 20:35:56 -0700
Updates for UDEV 091 Changes

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