source: udev/50-udev.rules@ 13c7c6a

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

Updates from Upstream

  • Property mode set to 100644
File size: 5.2 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="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"
27
28# serial devices
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"
35
36# video/graphics
37SUBSYSTEM=="video4linux", GROUP="video"
38SUBSYSTEM=="graphics" GROUP="video"
39KERNEL=="vtx*|vbi*", GROUP="video"
40KERNEL=="winradio*", GROUP="video"
41KERNEL=="vttuner*", GROUP="video"
42KERNEL=="nvidia*|nvidiactl*", GROUP="video"
43KERNEL=="video0", SYMLINK+="video"
44KERNEL=="radio0", SYMLINK+="radio"
45KERNEL=="vbi0", SYMLINK+="vbi"
46KERNEL=="pmu", GROUP="video"
47
48# dvb
49SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
50
51# input devices
52KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
53KERNEL=="js*", NAME="input/%k", MODE="0644"
54KERNEL=="ts*|uinput", NAME="input/%k", MODE="0600"
55KERNEL=="lirc0", SYMLINK+="lirc"
56
57# printer
58SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
59SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp"
60KERNEL=="irlpt*", GROUP="lp"
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
68KERNEL=="raw1394*", GROUP="video"
69KERNEL=="dv1394*", SYMLINK+="dv1394/%n", GROUP="video"
70KERNEL=="video1394*", SYMLINK+="video1394/%n", GROUP="video"
71
72# 183 = /dev/hwrng Generic random number generator
73KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
74
75# 219 /dev/modems/mwave MWave modem firmware upload
76KERNEL=="mwave", NAME="modems/%k"
77
78# 169 /dev/specialix_rioctl Specialix RIO serial control
79KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
80
81# 167 /dev/specialix_sxctl Specialix serial control
82KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
83
84# network
85KERNEL=="tun", NAME="net/%k", MODE="0600"
86
87# misc devices
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"
109
110# packet writing interface
111KERNEL=="pktcdvd", NAME="pktcdvd/control"
112KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
113
114# fix floppy devices
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"
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
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
123
124# misc storage devices (non-block)
125KERNEL=="sg*", GROUP="disk", MODE="0640"
126KERNEL=="sr*", GROUP="cdrom", MODE="0660"
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"
143SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
144KERNEL=="osst*|nosst*", GROUP="tape"
145KERNEL=="iseries/vt*", GROUP="disk"
146KERNEL=="iseries/nvt*", GROUP="disk"
147KERNEL=="iseries/ibmsis*", GROUP="disk"
148
149# libusb device access
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.