source: udev/50-udev.rules@ 0453750

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

Updates from Upstream

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