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