source: udev/50-udev.rules@ 8a12c7e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8a12c7e was 90d6419, checked in by Jim Gifford <clfs@…>, 18 years ago

Update to support Udev 104 and Device Mapper

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