source: udev/50-udev.rules@ 60ba5e6

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

r861@server (orig r859): jim | 2005-12-06 22:41:11 -0800

r994@server: jim | 2005-12-06 22:39:42 -0800
Updates from 077 OpenSuse Package


  • Property mode set to 100644
File size: 7.1 KB
RevLine 
[7e161ea]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}=="Palm 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/%%i $${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"
[a6cd72e]62KERNEL=="input[0-9]*", ACTION=="add", RUN+="input.sh"
[7e161ea]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
[a6cd72e]88# network
89KERNEL=="tun", NAME="net/%k", MODE="0600"
90
[7e161ea]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
[a6cd72e]117# packet writing interface
[7e161ea]118KERNEL=="pktcdvd", NAME="pktcdvd/control"
119KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
120
121# fix floppy devices
[a6cd72e]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*"
[7e161ea]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
[a6cd72e]140# load IDE modules
141SUBSYSTEM=="ide", ACTION=="add", RUN+="ide.sh"
[7e161ea]142
143# device mapper
[a6cd72e]144KERNEL=="device-mapper", NAME="%k", SYMLINK+="mapper/control"
[7e161ea]145
146# check fstab and possibly mount
[a6cd72e]147SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh"
[7e161ea]148
149# misc storage devices (non-block)
150KERNEL=="sg*", NAME="%k", GROUP="disk", MODE="640"
151KERNEL=="st*", NAME="%k", GROUP="disk"
152KERNEL=="nst*", NAME="%k", GROUP="disk"
153KERNEL=="initrd", NAME="%k", GROUP="disk"
154KERNEL=="qft*", NAME="%k", GROUP="disk"
155KERNEL=="nqft*", NAME="%k", GROUP="disk"
156KERNEL=="zqft*", NAME="%k", GROUP="disk"
157KERNEL=="nzqft*", NAME="%k", GROUP="disk"
158KERNEL=="rawqft*", NAME="%k", GROUP="disk"
159KERNEL=="nrawqft*", NAME="%k", GROUP="disk"
160KERNEL=="pf*", NAME="%k", GROUP="disk"
161KERNEL=="sch*", NAME="%k", GROUP="disk"
162KERNEL=="pt*", NAME="%k", GROUP="disk"
163KERNEL=="npt*", NAME="%k", GROUP="disk"
164KERNEL=="pg*", NAME="%k", GROUP="disk"
165KERNEL=="evms/block_device*", NAME="%k", GROUP="disk"
166KERNEL=="rawctl*", NAME="%k", GROUP="disk"
167KERNEL=="osst*", NAME="%k", GROUP="disk"
168KERNEL=="nosst*", NAME="%k", GROUP="disk"
169KERNEL=="iseries/vt*", NAME="%k", GROUP="disk"
170KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk"
171KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk"
172
173# libusb device access
174SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
175
[a6cd72e]176# kernel firmware loader
177SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
Note: See TracBrowser for help on using the repository browser.