source: udev/50-udev.rules@ f013de9

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f013de9 was 1f7827a2, checked in by Jim Gifford <clfs@…>, 19 years ago

r1012@server (orig r1010): jim | 2006-01-06 10:33:15 -0800

r1291@server: jim | 2006-01-06 10:31:33 -0800
Updates based on Alex's findings. Thank You Alex


  • Property mode set to 100644
File size: 6.3 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# console
18KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
19KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
20KERNEL=="vcs*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
21KERNEL=="tty", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
22KERNEL=="tty[0-9]*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
23KERNEL=="console", NAME="%k", MODE="600", OPTIONS="last_rule"
24KERNEL=="ptmx", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
25
26# serial devices
27KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"
28KERNEL=="pppox*", NAME="%k", GROUP="uucp"
29KERNEL=="ircomm*", NAME="%k", GROUP="uucp"
30KERNEL=="modems/mwave*", NAME="%k", GROUP="uucp"
31KERNEL=="hvc*", NAME="%k", GROUP="uucp"
32KERNEL=="hvsi*", NAME="%k", GROUP="uucp"
33KERNEL=="iseries/vtty*", NAME="%k", GROUP="uucp"
34KERNEL=="ttyUSB*", SYSFS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
35
36# video/graphics
37SUBSYSTEM=="video4linux", GROUP="video"
38SUBSYSTEM=="graphics" GROUP="video"
39KERNEL=="vtx*", NAME="%k", GROUP="video"
40KERNEL=="vbi*", NAME="%k", GROUP="video"
41KERNEL=="winradio*", NAME="%k", GROUP="video"
42KERNEL=="vttuner*", NAME="%k", GROUP="video"
43KERNEL=="nvidia*", NAME="%k", 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=="mice", NAME="input/%k", MODE="0640"
54KERNEL=="mouse*", NAME="input/%k", MODE="0640"
55KERNEL=="event*", NAME="input/%k", MODE="0640"
56KERNEL=="js*", NAME="input/%k", MODE="0644"
57KERNEL=="ts*", NAME="input/%k", MODE="0600"
58KERNEL=="uinput", NAME="input/%k", MODE="0600"
59KERNEL=="lirc0", NAME="%k", SYMLINK+="lirc"
60KERNEL=="input[0-9]*", ACTION=="add", RUN+="input.sh"
61
62# printer
63SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
64SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp"
65KERNEL=="irlpt*", NAME="%k", GROUP="lp"
66
67# cpu devices
68KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid"
69KERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
70KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
71
72# IEEE1394 devices
73KERNEL=="raw1394*", NAME="%k", GROUP="video"
74KERNEL=="dv1394*", NAME="%k", SYMLINK+="dv1394/%n", GROUP="video"
75KERNEL=="video1394*", NAME="%k", SYMLINK+="video1394/%n", GROUP="video"
76
77# 183 = /dev/hwrng Generic random number generator
78KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
79
80# 219 /dev/modems/mwave MWave modem firmware upload
81KERNEL=="mwave", NAME="modems/%k"
82
83# 169 /dev/specialix_rioctl Specialix RIO serial control
84KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
85
86# 167 /dev/specialix_sxctl Specialix serial control
87KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
88
89# network
90KERNEL=="tun", NAME="net/%k", MODE="0600"
91
92# misc devices
93KERNEL=="mem", NAME="%k", GROUP="kmem", MODE="640"
94KERNEL=="kmem", NAME="%k", GROUP="kmem", MODE="640"
95KERNEL=="port", NAME="%k", GROUP="kmem", MODE="640"
96KERNEL=="nvram", NAME="%k", GROUP="kmem", MODE="600"
97KERNEL=="null", NAME="%k", MODE="666"
98KERNEL=="zero", NAME="%k", MODE="666"
99KERNEL=="full", NAME="%k", MODE="622"
100KERNEL=="random", NAME="%k", MODE="666"
101KERNEL=="urandom", NAME="%k", MODE="644"
102KERNEL=="rtc", GROUP="audio"
103KERNEL=="sonypi", MODE="0666"
104KERNEL=="agpgart", MODE="0600", GROUP="video"
105KERNEL=="djs*", NAME="%k", MODE="644"
106KERNEL=="sgi_*", NAME="%k", MODE="666"
107KERNEL=="rrom*", NAME="%k", MODE="400"
108KERNEL=="rflash*", NAME="%k", MODE="400"
109KERNEL=="usbscanner*", NAME="%k", MODE="644"
110KERNEL=="3270/ttycons*", NAME="%k", MODE="600"
111KERNEL=="3270/tub*", NAME="%k", MODE="666"
112KERNEL=="3270/tubcons*", NAME="%k", MODE="600"
113KERNEL=="ica", NAME="%k", MODE="666"
114KERNEL=="z90crypt", NAME="%k", MODE="666"
115KERNEL=="mmtimer", NAME="%k", MODE="444"
116KERNEL=="auer[0-9]*" NAME="usb/%k"
117
118# packet writing interface
119KERNEL=="pktcdvd", NAME="pktcdvd/control"
120KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
121
122# fix floppy devices
123KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{device/cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{device/cmos} -m %M /dev/%k"
124KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
125
126# block devices
127SUBSYSTEM=="block", GROUP="disk", MODE="0640"
128
129# sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
130# sr: 4 TYPE_WORM, 5 TYPE_ROM
131# st/osst: 1 TYPE_TAPE
132ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys/$DEVPATH/timeout'"
133ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys/$DEVPATH/timeout'"
134
135# device mapper
136KERNEL=="device-mapper", NAME="%k", SYMLINK+="mapper/control"
137
138# misc storage devices (non-block)
139KERNEL=="sg*", NAME="%k", GROUP="disk", MODE="640"
140KERNEL=="st*", NAME="%k", GROUP="tape"
141KERNEL=="nst*", NAME="%k", GROUP="tape"
142KERNEL=="initrd", NAME="%k", GROUP="disk"
143KERNEL=="qft*", NAME="%k", GROUP="tape"
144KERNEL=="nqft*", NAME="%k", GROUP="tape"
145KERNEL=="zqft*", NAME="%k", GROUP="tape"
146KERNEL=="nzqft*", NAME="%k", GROUP="tape"
147KERNEL=="rawqft*", NAME="%k", GROUP="tape"
148KERNEL=="nrawqft*", NAME="%k", GROUP="tape"
149KERNEL=="pf*", NAME="%k", GROUP="disk"
150KERNEL=="sch*", NAME="%k", GROUP="disk"
151KERNEL=="pt*", NAME="%k", GROUP="tape"
152KERNEL=="npt*", NAME="%k", GROUP="tape"
153KERNEL=="pg*", NAME="%k", GROUP="disk"
154KERNEL=="evms/block_device*", NAME="%k", GROUP="disk"
155KERNEL=="rawctl*", NAME="%k", GROUP="disk"
156KERNEL=="osst*", NAME="%k", GROUP="tape"
157KERNEL=="nosst*", NAME="%k", GROUP="tape"
158KERNEL=="iseries/vt*", NAME="%k", GROUP="disk"
159KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk"
160KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk"
161
162# libusb device access
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.