source: udev/50-udev.rules@ 3d35a7a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3d35a7a 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
RevLine 
[7e161ea]1########################################################################
2#
[1f7827a2]3# Description : 50-udev.rules
[7e161ea]4#
5# Authors : Based on Open Suse Udev Rules
6# kay.sievers@suse.de
7#
8# Adapted to : Jim Gifford
[1f7827a2]9# LFS : Alexander E. Patrakov
[7e161ea]10#
11# Version : 00.01
12#
13# Notes :
14#
15########################################################################
16
[5e2628a1]17# block devices
18SUBSYSTEM=="block", GROUP="disk", MODE="0640"
19
[7e161ea]20# console
[858a93d]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"
[7e161ea]28
29# serial devices
[90d6419]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"
[7e161ea]36
37# video/graphics
38SUBSYSTEM=="video4linux", GROUP="video"
39SUBSYSTEM=="graphics" GROUP="video"
[90d6419]40KERNEL=="vtx*|vbi*", GROUP="video"
[858a93d]41KERNEL=="winradio*", GROUP="video"
42KERNEL=="vttuner*", GROUP="video"
[90d6419]43KERNEL=="nvidia*|nvidiactl*", GROUP="video"
[7e161ea]44KERNEL=="video0", SYMLINK+="video"
45KERNEL=="radio0", SYMLINK+="radio"
46KERNEL=="vbi0", SYMLINK+="vbi"
47KERNEL=="pmu", GROUP="video"
48
49# dvb
[f59ed2c]50SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
[7e161ea]51
52# input devices
[90d6419]53KERNEL=="mouse*|mice", NAME="input/%k", MODE="0640"
[7e161ea]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"
[858a93d]58KERNEL=="lirc0", SYMLINK+="lirc"
[7e161ea]59
60# printer
61SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
62SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp"
[858a93d]63KERNEL=="irlpt*", GROUP="lp"
[7e161ea]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
[858a93d]71KERNEL=="raw1394*", GROUP="video"
72KERNEL=="dv1394*", SYMLINK+="dv1394/%n", GROUP="video"
73KERNEL=="video1394*", SYMLINK+="video1394/%n", GROUP="video"
[7e161ea]74
75# 183 = /dev/hwrng Generic random number generator
76KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
[1f7827a2]77
[7e161ea]78# 219 /dev/modems/mwave MWave modem firmware upload
79KERNEL=="mwave", NAME="modems/%k"
[1f7827a2]80
[7e161ea]81# 169 /dev/specialix_rioctl Specialix RIO serial control
82KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
[1f7827a2]83
[7e161ea]84# 167 /dev/specialix_sxctl Specialix serial control
85KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
86
[a6cd72e]87# network
[1f7827a2]88KERNEL=="tun", NAME="net/%k", MODE="0600"
[a6cd72e]89
[7e161ea]90# misc devices
[90d6419]91KERNEL=="mem|kmem", GROUP="kmem", MODE="640"
[858a93d]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"
[7e161ea]99KERNEL=="rtc", GROUP="audio"
[858a93d]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"
[7e161ea]113KERNEL=="auer[0-9]*" NAME="usb/%k"
114
[a6cd72e]115# packet writing interface
[7e161ea]116KERNEL=="pktcdvd", NAME="pktcdvd/control"
117KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
118
119# fix floppy devices
[529837f]120KERNEL=="fd[0-9]*", ACTION=="add", GROUP="floppy", MODE="660"
[1f7827a2]121KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
[7e161ea]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
[910b1f6]126ACTION=="add", SUBSYSTEM=="scsi" , ATTR{type}=="0|7|14", ATTR{timeout}="60"
127ACTION=="add", SUBSYSTEM=="scsi" , ATTR{type}=="1", ATTR{timeout}="900"
[7e161ea]128
129# misc storage devices (non-block)
[858a93d]130KERNEL=="sg*", GROUP="disk", MODE="640"
[cf3e88b1]131KERNEL=="sr*", GROUP="cdrom", MODE="660"
[858a93d]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"
[90d6419]148SUBSYSTEM=="block", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
149KERNEL=="osst*|nosst*", GROUP="tape"
[858a93d]150KERNEL=="iseries/vt*", GROUP="disk"
151KERNEL=="iseries/nvt*", GROUP="disk"
152KERNEL=="iseries/ibmsis*", GROUP="disk"
[7e161ea]153
154# libusb device access
[c08883a]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.