]> git.pld-linux.org Git - packages/systemd.git/blob - udev.rules
- missing "
[packages/systemd.git] / udev.rules
1 # There are a number of modifiers that are allowed to be used in some of the
2 # fields.  See the udev man page for a full description of them.
3 #
4 # See the udev.rules.examples file for more examples of how to create rules
5 #
6
7 # create a symlink named after the device map name
8 # note devmap_name comes with extras/multipath
9 KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
10 KERNEL="device-mapper", NAME="mapper/control"
11
12 # DRI devices always go into a subdirectory (as per the LSB spec)
13 KERNEL="card*",         NAME="dri/card%n"
14
15 # alsa devices
16 KERNEL="controlC[0-9]*", NAME="snd/%k"
17 KERNEL="hw[CD0-9]*",     NAME="snd/%k"
18 KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
19 KERNEL="midi[CD0-9]*",   NAME="snd/%k"
20 KERNEL="timer",          NAME="snd/%k"
21 KERNEL="seq",            NAME="snd/%k"
22
23 # input devices
24 KERNEL="mice",          NAME="input/%k"
25 KERNEL="mouse*",        NAME="input/%k"
26 KERNEL="event*",        NAME="input/%k"
27 KERNEL="js*",           NAME="input/%k"
28 KERNEL="ts*",           NAME="input/%k"
29
30 BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
31
32 # fb devices
33 KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
34
35 # floppy devices
36 KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k"
37
38 # i2c devices
39 KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
40
41 # misc devices
42 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
43 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
44 KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
45 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
46 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
47 KERNEL="uinput",  NAME="misc/%k", SYMLINK="%k"
48
49 # pty devices
50 KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
51 KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
52
53 # ramdisk devices
54 KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
55
56 # sound devices
57 KERNEL="adsp",       NAME="sound/adsp"        SYMLINK="%k"
58 KERNEL="audio",      NAME="sound/audio",      SYMLINK="%k"
59 KERNEL="dsp",        NAME="sound/dsp",        SYMLINK="%k"
60 KERNEL="mixer",      NAME="sound/mixer",      SYMLINK="%k"
61 KERNEL="sequencer",  NAME="sound/sequencer",  SYMLINK="%k"
62 KERNEL="sequencer2", NAME="sound/sequencer2", SYMLINK="%k"
63
64 # tty devices
65 KERNEL="tty[0-9]*",    NAME="vc/%n",  SYMLINK="%k"
66 KERNEL="ttyS[0-9]*",   NAME="tts/%n", SYMLINK="%k"
67 KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
68
69 # vc devices
70 KERNEL="vcs",        NAME="vcc/0",   SYMLINK="%k"
71 KERNEL="vcs[0-9]*",  NAME="vcc/%n",  SYMLINK="%k"
72 KERNEL="vcsa",       NAME="vcc/a0",  SYMLINK="%k"
73 KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k"
74
75 # v4l devices
76 KERNEL="video[0-9]*", NAME="v4l/video%n"
77 KERNEL="radio[0-9]*", NAME="v4l/radio%n"
78 KERNEL="vbi[0-9]*",   NAME="v4l/vbi%n"
79 KERNEL="vtx[0-9]*",   NAME="v4l/vtx%n"
80
81 # CAPI devices
82 KERNEL="capi",          NAME="capi20", SYMLINK="isdn/capi20"
83 KERNEL="capi[0-9]*",    NAME="capi/%n"
84
85
86 KERNEL="microcode",     SYMLINK="cpu/0/%k"
87 KERNEL="ram1",          SYMLINK="ram"
88 KERNEL="video0",        SYMLINK="video"
89 KERNEL="radio0",        SYMLINK="radio"
90 KERNEL="audio0",        SYMLINK="audio"
91 KERNEL="dsp0",          SYMLINK="dsp"
92 KERNEL="fb0",           SYMLINK="fb"
93 KERNEL="qft0",          SYMLINK="ftape"
94 KERNEL="isdnctrl0",     SYMLINK="isdnctrl"
95 KERNEL="mixer0",        SYMLINK="mixer"
96 KERNEL="ram0",          SYMLINK="ramdisk"
97 KERNEL="sbpcd0",        SYMLINK="sbpcd"
98 KERNEL="radio0",        SYMLINK="radio"
99 KERNEL="tty0",          SYMLINK="systty"
100 KERNEL="vbi0",          SYMLINK="vbi"
101 KERNEL="null",          SYMLINK="XOR"
102
103 KERNEL="tun",           NAME="net/%k"
104
105 # old compat symlinks with enumeration
106 KERNEL="sr*",           SYMLINK="cdrom%e"
107 KERNEL="scd*",          SYMLINK="cdrom%e"
108 KERNEL="pcd*",          SYMLINK="cdrom%e"
109 KERNEL="fd[0-9]",       SYMLINK="floppy%e"
110
111 KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", SYMLINK="cdrom%e"
112
113 KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy", SYMLINK="floppy%e"
114
115 KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
116 KERNEL="sr*", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
117 KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
118 KERNEL="sr*", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
119 KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
120 KERNEL="sr*", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
121
122 # rename sr* to scd*
123 KERNEL="sr*", NAME="scd%n"
124
125 # Locate zaptel in its own directory
126 KERNEL="zap[0-9]", NAME="zap/%n"
127 KERNEL="zapctl", NAME="zap/ctl"
128 KERNEL="zapchannel", NAME="zap/channel"
129 KERNEL="zaptimer", NAME="zap/timer"
130 KERNEL="zappseudo", NAME="zap/pseudo"
131
This page took 0.04586 seconds and 4 git commands to generate.