chiark / gitweb /
Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
[elogind.git] / etc / udev / 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 # if this is a ide cdrom, name it the default name, and create a symlink to cdrom
8 BUS=="ide", KERNEL=="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK+="cdrom"
9
10 # DRI devices always go into a subdirectory (as per the LSB spec)
11 KERNEL=="card*",                NAME="dri/card%n"
12
13 # alsa devices
14 KERNEL=="controlC[0-9]*",       NAME="snd/%k"
15 KERNEL=="hw[CD0-9]*",           NAME="snd/%k"
16 KERNEL=="pcm[CD0-9cp]*",        NAME="snd/%k"
17 KERNEL=="midiC[D0-9]*",         NAME="snd/%k"
18 KERNEL=="timer",                NAME="snd/%k"
19 KERNEL=="seq",                  NAME="snd/%k"
20
21 # input devices
22 KERNEL=="mice",                 NAME="input/%k"
23 KERNEL=="mouse*",               NAME="input/%k"
24 KERNEL=="event*",               NAME="input/%k"
25 KERNEL=="js*",                  NAME="input/%k"
26 KERNEL=="ts*",                  NAME="input/%k"
27
28 # USB devices
29 KERNEL=="hiddev*",              NAME="usb/%k"
30 KERNEL=="auer*",                NAME="usb/%k"
31 KERNEL=="legousbtower*",        NAME="usb/%k"
32 KERNEL=="dabusb*",              NAME="usb/%k"
33 BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k"
34
35 # CAPI devices
36 KERNEL=="capi",                 NAME="capi20", SYMLINK+="isdn/capi20"
37 KERNEL=="capi*",                NAME="capi/%n"
38
39 # Network devices
40 KERNEL=="tun",                  NAME="net/%k"
41
42 # raw devices
43 KERNEL=="raw[0-9]*",            NAME="raw/%k"
44
45 # emulate dev.d/
46 RUN="/sbin/udev_run_devd"