1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# There are a number of modifiers that are allowed to be used in some of the
# fields. See the udev man page for a full description of them.
#
# See the udev.rules.examples file for more examples of how to create rules
#
# create a symlink named after the device map name
# note devmap_name comes with extras/multipath
#KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
# DRI devices always go into a subdirectory (as per the LSB spec)
KERNEL="card*", NAME="dri/card%n"
# alsa devices
KERNEL="controlC[0-9]*", NAME="snd/%k"
KERNEL="hw[CD0-9]*", NAME="snd/%k"
KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
KERNEL="midi[CD0-9]*", NAME="snd/%k"
KERNEL="timer", NAME="snd/%k"
KERNEL="seq", NAME="snd/%k"
# input devices
KERNEL="mice", NAME="input/%k"
KERNEL="mouse*", NAME="input/%k"
KERNEL="event*", NAME="input/%k"
KERNEL="js*", NAME="input/%k"
KERNEL="ts*", NAME="input/%k"
KERNEL="raw[0-9]*", NAME="raw/%k"
KERNEL="lp[0-9]*", SYMLINK="par%n"
BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
KERNEL="microcode", SYMLINK="cpu/0/%k"
KERNEL="ram1", SYMLINK="ram"
KERNEL="video0", SYMLINK="video"
KERNEL="radio0", SYMLINK="radio"
KERNEL="audio0", SYMLINK="audio"
KERNEL="dsp0", SYMLINK="dsp"
KERNEL="fb0", SYMLINK="fb"
KERNEL="qft0", SYMLINK="ftape"
KERNEL="isdnctrl0", SYMLINK="isdnctrl"
KERNEL="mixer0", SYMLINK="mixer"
KERNEL="ram0", SYMLINK="ramdisk"
KERNEL="sbpcd0", SYMLINK="sbpcd"
KERNEL="radio0", SYMLINK="radio"
KERNEL="tty0", SYMLINK="systty"
KERNEL="vbi0", SYMLINK="vbi"
KERNEL="null", SYMLINK="XOR"
KERNEL="tun", NAME="net/%k"
KERNEL="device-mapper", NAME="mapper/control"
# old compat symlinks with enumeration
KERNEL="sr[0-9]*", SYMLINK="cdrom%e"
KERNEL="scd[0-9]*", SYMLINK="cdrom%e"
KERNEL="pcd[0-9]*", SYMLINK="cdrom%e"
KERNEL="fd[0-9]*", SYMLINK="floppy%e"
KERNEL="nst[0-9]*", SYMLINK="tape%e"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/ide-media.sh %k", RESULT="floppy", SYMLINK="floppy%e, NAME{ignore_remove, all_partitions}="%k"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", RESULT="cdrom", SYMLINK="cdrom%e"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
# rename sr* to scd*
KERNEL="sr[0-9]*", BUS="scsi", NAME="scd%n"
KERNEL="hd[a-z]*", BUS="ide", SYSFS{removable}="1", NAME{ignore_remove}="%k"
KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"
|