chiark / gitweb /
remove example rules and put the dev.d stuff into the run_directory folder
[elogind.git] / etc / udev / udev.rules.devfs
1 # The use of these rules is not recommended or supported.
2 # In a world where devices can come and go at any time, the devfs scheme
3 # of simple device enumeration does not help _anything_. Just forget about
4 # it. Use custom rules to name your device or look at the persistent device
5 # naming scheme, which is implemented for disks and add your subsystem.
6
7 # There are a number of modifiers that are allowed to be used in some of the
8 # fields.  See the udev man page for a full description of them.
9
10 # ide block devices
11 BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
12
13 # md block devices
14 KERNEL="md[0-9]*", NAME="md/%n"
15
16 # floppy devices
17 KERNEL="fd[0-9]*", NAME="floppy/%n"
18
19 # tty devices
20 KERNEL="tty[0-9]*",    NAME="vc/%n"
21 KERNEL="ttyS[0-9]*",   NAME="tts/%n"
22 KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
23
24 # vc devices
25 KERNEL="vcs",        NAME="vcc/0"
26 KERNEL="vcs[0-9]*",  NAME="vcc/%n"
27 KERNEL="vcsa",       NAME="vcc/a0"
28 KERNEL="vcsa[0-9]*", NAME="vcc/a%n"
29
30 # v4l devices
31 KERNEL="video[0-9]*", NAME="v4l/video%n"
32 KERNEL="radio[0-9]*", NAME="v4l/radio%n"
33 KERNEL="vbi[0-9]*",   NAME="v4l/vbi%n"
34 KERNEL="vtx[0-9]*",   NAME="v4l/vtx%n"
35
36 # dm devices (ignore them)
37 KERNEL="dm-[0-9]*", NAME=""
38
39 # i2c devices
40 KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
41
42 # loop devices
43 KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
44
45 # ramdisks
46 KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
47
48 # framebuffer devices
49 KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
50
51 # misc
52 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
53 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
54 KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
55 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
56 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
57 KERNEL="uinput",  NAME="misc/%k", SYMLINK="%k"
58
59 # alsa devices
60 KERNEL="controlC[0-9]*", NAME="snd/%k"
61 KERNEL="hw[CD0-9]*",     NAME="snd/%k"
62 KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
63 KERNEL="midi[CD0-9]*",   NAME="snd/%k"
64 KERNEL="timer",          NAME="snd/%k"
65 KERNEL="seq",            NAME="snd/%k"
66
67 # oss devices
68 KERNEL="audio*",     NAME="sound/%k", SYMLINK="%k"
69 KERNEL="dmmidi",     NAME="sound/%k", SYMLINK="%k"
70 KERNEL="dsp*",       NAME="sound/%k", SYMLINK="%k"
71 KERNEL="midi*",      NAME="sound/%k", SYMLINK="%k"
72 KERNEL="mixer*",     NAME="sound/%k", SYMLINK="%k"
73 KERNEL="sequencer*", NAME="sound/%k", SYMLINK="%k"
74
75 # input devices
76 KERNEL="mice",   NAME="input/%k"
77 KERNEL="mouse*", NAME="input/%k"
78 KERNEL="event*", NAME="input/%k"
79 KERNEL="js*",    NAME="input/%k"
80 KERNEL="ts*",    NAME="input/%k"
81
82 # USB devices
83 KERNEL="hiddev*",       NAME="usb/%k"
84 KERNEL="auer*",         NAME="usb/%k"
85 KERNEL="legousbtower*", NAME="usb/%k"
86 KERNEL="dabusb*",       NAME="usb/%k"
87 BUS="usb", KERNEL="lp[0-9]*",   NAME="usb/%k"
88
89 # netlink devices
90 KERNEL="route",         NAME="netlink/%k"
91 KERNEL="skip",          NAME="netlink/%k"
92 KERNEL="usersock",      NAME="netlink/%k"
93 KERNEL="fwmonitor",     NAME="netlink/%k"
94 KERNEL="tcpdiag",       NAME="netlink/%k"
95 KERNEL="nflog",         NAME="netlink/%k"
96 KERNEL="xfrm",          NAME="netlink/%k"
97 KERNEL="arpd",          NAME="netlink/%k"
98 KERNEL="route6",        NAME="netlink/%k"
99 KERNEL="ip6_fw",        NAME="netlink/%k"
100 KERNEL="dnrtmsg",       NAME="netlink/%k"
101 KERNEL="tap*",          NAME="netlink/%k"
102
103 # CAPI devices
104 KERNEL="capi",          NAME="capi20", SYMLINK="isdn/capi20"
105 KERNEL="capi*",         NAME="capi/%n"
106
107 # Network devices
108 KERNEL="tun",           NAME="net/%k"
109
110 # raw devices
111 KERNEL="raw[0-9]*",     NAME="raw/%k"