source: udev/50-udev.rules@ 6b4711c

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

r994@server (orig r992): jim | 2006-01-03 12:07:10 -0800

r1255@server: jim | 2006-01-03 12:06:51 -0800
Updates from OpenSuse


  • Property mode set to 100644
File size: 7.0 KB
Line 
1########################################################################
2#
3# Description : Base Udev Rules Set
4#
5# Authors : Based on Open Suse Udev Rules
6# kay.sievers@suse.de
7#
8# Adapted to : Jim Gifford
9# LFS
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=="vcsa*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
22KERNEL=="tty", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
23KERNEL=="tty[0-9]*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
24KERNEL=="console", NAME="%k", MODE="600", OPTIONS="last_rule"
25KERNEL=="ptmx", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
26
27# serial devices
28KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"
29KERNEL=="pppox*", NAME="%k", GROUP="uucp"
30KERNEL=="ircomm*", NAME="%k", GROUP="uucp"
31KERNEL=="modems/mwave*", NAME="%k", GROUP="uucp"
32KERNEL=="hvc*", NAME="%k", GROUP="uucp"
33KERNEL=="hvsi*", NAME="%k", GROUP="uucp"
34KERNEL=="iseries/vtty*", NAME="%k", GROUP="uucp"
35KERNEL=="ttyUSB*", SYSFS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
36
37# video/graphics
38SUBSYSTEM=="video4linux", GROUP="video"
39SUBSYSTEM=="graphics" GROUP="video"
40KERNEL=="vtx*", NAME="%k", GROUP="video"
41KERNEL=="vbi*", NAME="%k", GROUP="video"
42KERNEL=="winradio*", NAME="%k", GROUP="video"
43KERNEL=="vttuner*", NAME="%k", GROUP="video"
44KERNEL=="nvidia*", NAME="%k", GROUP="video"
45KERNEL=="nvidiactl*", NAME="%k", GROUP="video"
46KERNEL=="video0", SYMLINK+="video"
47KERNEL=="radio0", SYMLINK+="radio"
48KERNEL=="vbi0", SYMLINK+="vbi"
49KERNEL=="pmu", GROUP="video"
50
51# dvb
52SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
53
54# input devices
55KERNEL=="mice", NAME="input/%k", MODE="0640"
56KERNEL=="mouse*", NAME="input/%k", MODE="0640"
57KERNEL=="event*", NAME="input/%k", MODE="0640"
58KERNEL=="js*", NAME="input/%k", MODE="0644"
59KERNEL=="ts*", NAME="input/%k", MODE="0600"
60KERNEL=="uinput", NAME="input/%k", MODE="0600"
61KERNEL=="lirc0", NAME="%k", SYMLINK+="lirc"
62KERNEL=="input[0-9]*", ACTION=="add", RUN+="input.sh"
63
64# printer
65SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
66SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp"
67KERNEL=="irlpt*", NAME="%k", GROUP="lp"
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
75KERNEL=="raw1394*", NAME="%k", GROUP="video"
76KERNEL=="dv1394*", NAME="%k", SYMLINK+="dv1394/%n", GROUP="video"
77KERNEL=="video1394*", NAME="%k", SYMLINK+="video1394/%n", GROUP="video"
78
79# 183 = /dev/hwrng Generic random number generator
80KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
81# 219 /dev/modems/mwave MWave modem firmware upload
82KERNEL=="mwave", NAME="modems/%k"
83# 169 /dev/specialix_rioctl Specialix RIO serial control
84KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
85# 167 /dev/specialix_sxctl Specialix serial control
86KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
87
88# network
89KERNEL=="tun", NAME="net/%k", MODE="0600"
90
91# misc devices
92KERNEL=="mem", NAME="%k", GROUP="kmem", MODE="640"
93KERNEL=="kmem", NAME="%k", GROUP="kmem", MODE="640"
94KERNEL=="port", NAME="%k", GROUP="kmem", MODE="640"
95KERNEL=="nvram", NAME="%k", GROUP="kmem", MODE="600"
96KERNEL=="null", NAME="%k", MODE="666"
97KERNEL=="zero", NAME="%k", MODE="666"
98KERNEL=="full", NAME="%k", MODE="622"
99KERNEL=="random", NAME="%k", MODE="666"
100KERNEL=="urandom", NAME="%k", MODE="644"
101KERNEL=="rtc", GROUP="audio"
102KERNEL=="sonypi", MODE="0666"
103KERNEL=="agpgart", MODE="0600", GROUP="video"
104KERNEL=="djs*", NAME="%k", MODE="644"
105KERNEL=="sgi_*", NAME="%k", MODE="666"
106KERNEL=="rrom*", NAME="%k", MODE="400"
107KERNEL=="rflash*", NAME="%k", MODE="400"
108KERNEL=="usbscanner*", NAME="%k", MODE="644"
109KERNEL=="3270/ttycons*", NAME="%k", MODE="600"
110KERNEL=="3270/tub*", NAME="%k", MODE="666"
111KERNEL=="3270/tubcons*", NAME="%k", MODE="600"
112KERNEL=="ica", NAME="%k", MODE="666"
113KERNEL=="z90crypt", NAME="%k", MODE="666"
114KERNEL=="mmtimer", NAME="%k", MODE="444"
115KERNEL=="auer[0-9]*" NAME="usb/%k"
116
117# packet writing interface
118KERNEL=="pktcdvd", NAME="pktcdvd/control"
119KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
120
121# fix floppy devices
122KERNEL=="nvram", ACTION=="add", RUN+="load_floppy_module.sh"
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'"
134SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
135SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", SYSFS{device/vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst"
136SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", RUN+="/sbin/modprobe st"
137SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="[45]", RUN+="/sbin/modprobe sr_mod"
138SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg"
139
140# load IDE modules
141SUBSYSTEM=="ide", ACTION=="add", RUN+="ide.sh"
142
143# device mapper
144KERNEL=="device-mapper", NAME="%k", SYMLINK+="mapper/control"
145
146# misc storage devices (non-block)
147KERNEL=="sg*", NAME="%k", GROUP="disk", MODE="640"
148KERNEL=="st*", NAME="%k", GROUP="disk"
149KERNEL=="nst*", NAME="%k", GROUP="disk"
150KERNEL=="initrd", NAME="%k", GROUP="disk"
151KERNEL=="qft*", NAME="%k", GROUP="disk"
152KERNEL=="nqft*", NAME="%k", GROUP="disk"
153KERNEL=="zqft*", NAME="%k", GROUP="disk"
154KERNEL=="nzqft*", NAME="%k", GROUP="disk"
155KERNEL=="rawqft*", NAME="%k", GROUP="disk"
156KERNEL=="nrawqft*", NAME="%k", GROUP="disk"
157KERNEL=="pf*", NAME="%k", GROUP="disk"
158KERNEL=="sch*", NAME="%k", GROUP="disk"
159KERNEL=="pt*", NAME="%k", GROUP="disk"
160KERNEL=="npt*", NAME="%k", GROUP="disk"
161KERNEL=="pg*", NAME="%k", GROUP="disk"
162KERNEL=="evms/block_device*", NAME="%k", GROUP="disk"
163KERNEL=="rawctl*", NAME="%k", GROUP="disk"
164KERNEL=="osst*", NAME="%k", GROUP="disk"
165KERNEL=="nosst*", NAME="%k", GROUP="disk"
166KERNEL=="iseries/vt*", NAME="%k", GROUP="disk"
167KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk"
168KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk"
169
170# libusb device access
171SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
172
173# kernel firmware loader
174SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware_helper"
Note: See TracBrowser for help on using the repository browser.