source: udev/50-udev.rules@ 862e2c0

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 862e2c0 was bda8cfb, checked in by Jim Gifford <clfs@…>, 18 years ago

r5455@server: jim | 2006-08-31 09:17:48 -0700
Updated for Udev 098

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