Magellan Linux

Contents of /trunk/udev/config-udev-046/udev.rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (show annotations) (download)
Fri Dec 10 12:17:31 2004 UTC (19 years, 3 months ago) by niro
File size: 5002 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

1 # /etc/udev/udev.rules: device naming rules for udev
2 #
3 # There are a number of modifiers that are allowed to be used in some
4 # of the different fields. They provide the following subsitutions:
5 # %n - the "kernel number" of the device.
6 # For example, 'sda3' has a "kernel number" of '3'
7 # %k - the kernel name for the device.
8 # %M - the kernel major number for the device
9 # %m - the kernel minor number for the device
10 # %b - the bus id for the device
11 # %c - the string returned by the PROGRAM. (Note, this doesn't work within
12 # the PROGRAM field for the obvious reason.)
13 # %s{filename} - the content of a sysfs attribute.
14 # %% - the '%' char itself.
15 #
16
17 # symlinks
18 BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
19 BUS="scsi", KERNEL="sr[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
20 BUS="scsi", KERNEL="scd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
21
22 # devfs compat symlinks
23 BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/cdrom-devfs.sh %k", SYMLINK="%c{1} %c{2}"
24
25 # permissions for IDE CD devices
26 BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", GROUP="cdrom", MODE="0660"
27
28 # permissions for IDE floppy devices
29 BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy*", NAME="%k", GROUP="floppy", MODE="0660"
30
31 # permissions for SCSI cd/sg/tape devices
32 BUS="scsi", KERNEL="s[grt][0-9]*", SYSFS_type="5", NAME="%k", GROUP="cdrom", MODE="0660"
33
34 # DRI devices
35 KERNEL="card*", NAME="dri/card%n"
36
37 # ALSA devices
38 KERNEL="controlC[0-9]*", NAME="snd/%k"
39 KERNEL="hw[CD0-9]*", NAME="snd/%k"
40 KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
41 KERNEL="midiC[D0-9]*", NAME="snd/%k"
42 KERNEL="timer", NAME="snd/%k"
43 KERNEL="seq", NAME="snd/%k"
44
45 # dm devices (ignore them)
46 KERNEL="dm-[0-9]*", NAME=""
47 # create a symlink named after the device map name
48 # note devmap_name comes with extras/multipath
49 #KERNEL="dm-[0-9]*", PROGRAM="/etc/udev/scripts/devmap_name %M %m", NAME="%k", SYMLINK="%c"
50 KERNEL="device-mapper", NAME="mapper/control"
51
52 # fb devices
53 KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
54
55 # floppy devices
56 KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k", PROGRAM="/etc/udev/scripts/floppy-extra-devs.sh %k %b %n"
57
58 # i2c devices
59 KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
60
61 # input devices
62 KERNEL="mice", NAME="input/%k"
63 KERNEL="mouse*", NAME="input/%k"
64 KERNEL="event*", NAME="input/%k"
65 KERNEL="js*", NAME="input/%k"
66 KERNEL="ts*", NAME="input/%k"
67
68 # loop devices
69 KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
70
71 # md block devices
72 KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k"
73
74 # misc devices
75 KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
76 KERNEL="microcode", NAME="misc/%k", SYMLINK="%k"
77 KERNEL="psaux", NAME="misc/%k", SYMLINK="%k"
78 KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"
79 KERNEL="uinput", NAME="misc/%k", SYMLINK="%k"
80
81 # pty devices
82 KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
83 KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k"
84
85 # ramdisk devices
86 KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
87
88 # sound devices
89 KERNEL="adsp", NAME="sound/%k", SYMLINK="%k"
90 KERNEL="adsp[0-9]*", NAME="sound/%k", SYMLINK="%k"
91 KERNEL="audio", NAME="sound/%k", SYMLINK="%k"
92 KERNEL="audio[0-9]*", NAME="sound/%k", SYMLINK="%k"
93 KERNEL="dsp", NAME="sound/%k", SYMLINK="%k"
94 KERNEL="dsp[0-9]*", NAME="sound/%k", SYMLINK="%k"
95 KERNEL="mixer", NAME="sound/%k", SYMLINK="%k"
96 KERNEL="mixer[0-9]*", NAME="sound/%k", SYMLINK="%k"
97 KERNEL="sequencer", NAME="sound/%k", SYMLINK="%k"
98 KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k"
99
100 # tty devices
101 KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k"
102 KERNEL="ttyS[0-9]*", NAME="tts/%n", SYMLINK="%k"
103 KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
104
105 # vc devices
106 KERNEL="vcs", NAME="vcc/0", SYMLINK="%k"
107 KERNEL="vcs[0-9]*", NAME="vcc/%n", SYMLINK="%k"
108 KERNEL="vcsa", NAME="vcc/a0", SYMLINK="%k"
109 KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k"
110
111 # v4l devices
112 KERNEL="video[0-9]*", NAME="v4l/video%n", SYMLINK="video%n"
113 KERNEL="radio[0-9]*", NAME="v4l/radio%n", SYMLINK="radio%n"
114 KERNEL="vbi[0-9]*", NAME="v4l/vbi%n", SYMLINK="vbi%n"
115 KERNEL="vtx[0-9]*", NAME="v4l/vtx%n", SYMLINK="vtx%n"
116
117 # USB devices
118 KERNEL="hiddev*", NAME="usb/%k"
119 KERNEL="auer*", NAME="usb/%k"
120 KERNEL="legousbtower*", NAME="usb/%k"
121 KERNEL="dabusb*", NAME="usb/%k"
122 BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
123
124 # Network devices
125 KERNEL="tap*", NAME="net/%k"
126 KERNEL="tun", NAME="net/%k"
127
128 # CAPI devices
129 KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20"
130 KERNEL="capi*", NAME="capi/%n"
131
132 # raw devices
133 KERNEL="raw[0-9]*", NAME="raw/%k"
134
135 # cpu devices
136 KERNEL="cpu[0-9]*", NAME="cpu/%n/cpuid"
137 KERNEL="msr[0-9]*", NAME="cpu/%n/msr"
138 KERNEL="microcode", NAME="cpu/microcode"
139
140

Properties

Name Value
svn:executable *