chiark / gitweb /
[PATCH] Add Red Hat rules and permissions files
[elogind.git] / etc / udev / udev.rules.redhat
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 of the
4 # fields.  See the udev man page for a full description of them.
5
6 ###########################################################
7 #
8 # Add your own rules here (examples are commented)
9 #
10 ###########################################################
11
12 # Looking for scsi bus id 42:0:0:1
13 #BUS="scsi", PROGRAM="/bin/echo -n test-%b", RESULT="test-42:0:0:1", NAME="%c"
14
15 # A usb camera.
16 #BUS="usb", SYSFS_vendor="FUJIFILM", SYSFS_model="M100", NAME="camera%n"
17
18 # USB Epson printer to be called lp_epson
19 #BUS="usb", SYSFS_serial="HXOLL0012202323480", NAME="lp_epson"
20
21 # USB HP printer to be called lp_hp
22 #BUS="usb", SYSFS_serial="W09090207101241330", NAME="lp_hp"
23
24 # sound card with PCI bus id 00:0b.0 to be the first sound card
25 #BUS="pci", ID="00:0b.0", NAME="dsp"
26
27 # sound card with PCI bus id 00:07.1 to be the second sound card
28 #BUS="pci", ID="00:07.1", NAME="dsp1"
29
30 # USB mouse plugged into the third port of the first hub to be called mouse0
31 #BUS="usb", PLACE="1.3", NAME="mouse0"
32
33 # USB tablet plugged into the third port of the second hub to be called mouse1
34 #BUS="usb", PLACE="2.3", NAME="mouse1"
35 #BUS="usb", PLACE="2.4", NAME="mouse2"
36
37 # ttyUSB1 should always be called visor
38 #KERNEL="ttyUSB1", NAME="visor"
39 #KERNEL="ttyUSB0", NAME="pl2303"
40
41
42 ###########################################################
43 #
44 # For devfs similar /dev layout (neater)
45 #
46 ###########################################################
47
48 # devfs-names for ide-devices (uncomment only one)
49 #  /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
50 BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
51
52 # alsa devices
53 KERNEL="controlC[0-9]*", NAME="snd/%k"
54 KERNEL="hw[CD0-9]*",     NAME="snd/%k"
55 KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
56 KERNEL="midi[CD0-9]*",   NAME="snd/%k"
57 KERNEL="timer",          NAME="snd/%k"
58 KERNEL="seq",            NAME="snd/%k"
59
60 # dm devices (ignore them)
61 KERNEL="dm-[0-9]*",     NAME=""
62 KERNEL="device-mapper", NAME="mapper/control"
63
64 # fb devices
65 KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
66
67 # floppy devices
68 KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k"
69
70 # i2c devices
71 KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
72
73 # input devices
74 KERNEL="mice",        NAME="input/mice"
75 KERNEL="mouse[0-9]*", NAME="input/mouse%n"
76 KERNEL="event[0-9]*", NAME="input/event%n"
77 KERNEL="js*",         NAME="input/%k"
78 KERNEL="ts*",         NAME="input/%k"
79
80 # loop devices
81 KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
82
83 # md block devices
84 KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k"
85
86 # misc devices
87 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
88 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
89 KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
90 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
91 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
92 KERNEL="uinput",  NAME="misc/%k", SYMLINK="%k"
93
94 # pty devices
95 KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
96 KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
97
98 # ramdisk devices
99 KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
100
101 # sound devices
102 KERNEL="adsp",       NAME="sound/adsp"        SYMLINK="%k"
103 KERNEL="audio",      NAME="sound/audio",      SYMLINK="%k"
104 KERNEL="dsp",        NAME="sound/dsp",        SYMLINK="%k"
105 KERNEL="mixer",      NAME="sound/mixer",      SYMLINK="%k"
106 KERNEL="sequencer",  NAME="sound/sequencer",  SYMLINK="%k"
107 KERNEL="sequencer2", NAME="sound/sequencer2", SYMLINK="%k"
108
109 # tty devices
110 KERNEL="tty[0-9]*",    NAME="vc/%n",  SYMLINK="%k"
111 KERNEL="ttyS[0-9]*",   NAME="tts/%n", SYMLINK="%k"
112 KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
113
114 # vc devices
115 KERNEL="vcs",        NAME="vcc/0",   SYMLINK="%k"
116 KERNEL="vcs[0-9]*",  NAME="vcc/%n",  SYMLINK="%k"
117 KERNEL="vcsa",       NAME="vcc/a0",  SYMLINK="%k"
118 KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k"
119
120 # v4l devices
121 KERNEL="video[0-9]*", NAME="v4l/video%n"
122 KERNEL="radio[0-9]*", NAME="v4l/radio%n"
123 KERNEL="vbi[0-9]*",   NAME="v4l/vbi%n"
124 KERNEL="vtx[0-9]*",   NAME="v4l/vtx%n"
125