1 # There are a number of modifiers that are allowed to be used in some
2 # of the different fields. They provide the following subsitutions:
3 # %n - the "kernel number" of the device.
4 # For example, 'sda3' has a "kernel number" of '3'
5 # %k - the kernel name for the device.
6 # %M - the kernel major number for the device
7 # %m - the kernel minor number for the device
8 # %b - the bus id for the device
9 # %c - the string returned by the PROGRAM. (Note, this doesn't work within
10 # the PROGRAM field for the obvious reason.)
11 # %s{filename} - the content of a sysfs attribute.
12 # %% - the '%' char itself.
16 BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
18 # permissions for SCSI sg devices
19 BUS="scsi", KERNEL="s[grt][0-9]*", SYSFS{type}="5", NAME="%k", MODE="0660", GROUP="cdrom"
21 # permissions for IDE CD devices
22 BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", MODE="0660", GROUP="cdrom"
24 # permissions for IDE floppy devices
25 BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy*", NAME="%k", MODE="0660", GROUP="floppy"
28 BUS="usb", KERNEL="hiddev*", NAME="usb/%k"
29 BUS="usb", KERNEL="auer*", NAME="usb/%k"
30 BUS="usb", KERNEL="legousbtower*", NAME="usb/%k"
31 BUS="usb", KERNEL="dabusb*", NAME="usb/%k"
32 BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
34 KERNEL="dvb*", PROGRAM="/etc/udev/dvb.sh %k", NAME="%c"
36 KERNEL="card*", NAME="dri/card%n"
37 KERNEL="cdemu[0-9]*", NAME="cdemu/%n"
38 KERNEL="cpu[0-9]*", NAME="cpu/%n/cpuid"
39 KERNEL="msr[0-9]*", NAME="cpu/%n/msr"
40 KERNEL="microcode", NAME="cpu/microcode"
43 KERNEL="controlC[0-9]*", NAME="snd/%k"
44 KERNEL="hw[CD0-9]*", NAME="snd/%k"
45 KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
46 KERNEL="midi[CD0-9]*", NAME="snd/%k"
47 KERNEL="timer", NAME="snd/%k"
48 KERNEL="seq", NAME="snd/%k"
51 KERNEL="mice", NAME="input/%k"
52 KERNEL="mouse[0-9]*", NAME="input/%k"
53 KERNEL="event[0-9]*", NAME="input/%k", PROGRAM="/etc/udev/inputdev.sh %k", RESULT="inputdev", MODE="0664", GROUP="video"
54 KERNEL="event[0-9]*", NAME="input/%k"
55 KERNEL="js[0-9]*", NAME="input/%k"
56 KERNEL="ts[0-9]*", NAME="input/%k"
57 KERNEL="uinput", NAME="input/%k"
59 KERNEL="tap*", NAME="net/%k"
60 KERNEL="tun", NAME="net/%k"
63 KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20"
64 KERNEL="capi[0-9]*", NAME="capi/%n"
66 # device mapper creates its own device nodes, so ignore these
67 KERNEL="dm-[0-9]*", NAME=""
68 KERNEL="device-mapper", NAME="mapper/control"