Magellan Linux

Contents of /tags/udev-171-r1/udev.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log


Revision 717 - (show annotations) (download)
Mon Dec 22 20:31:37 2008 UTC (15 years, 4 months ago) by niro
Original Path: trunk/udev/udev.rules.magellan
File size: 5546 byte(s)
-updated to udev-135

1 # /etc/udev/rules/50-udev.rules: device naming rules for udev
2 # $Header: /root/magellan-cvs/src/udev/udev.rules.magellan,v 1.6 2008-12-22 20:31:37 niro Exp $
3 #
4 # There are a number of modifiers that are allowed to be used in some
5 # of the different fields. They provide the following subsitutions:
6 # %n - the "kernel number" of the device.
7 # For example, 'sda3' has a "kernel number" of '3'
8 # %k - the kernel name for the device.
9 # %M - the kernel major number for the device
10 # %m - the kernel minor number for the device
11 # %b - the bus id for the device
12 # %c - the string returned by the PROGRAM. (Note, this doesn't work within
13 # the PROGRAM field for the obvious reason.)
14 # %s{filename} - the content of a sysfs attribute.
15 # %% - the '%' char itself.
16 #
17 # Try not to modify this file, if you wish to change things, create a new rule
18 # file that can be run before this one.
19 #
20
21 SUBSYSTEM=="block", SYMLINK+="block/%M:%m"
22 SUBSYSTEM!="block", SYMLINK+="char/%M:%m"
23
24 KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS+="last_rule"
25 KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS+="last_rule"
26 KERNEL=="ptmx", GROUP="tty", MODE="0666", OPTIONS+="last_rule"
27 KERNEL=="tty", GROUP="tty", MODE="0666", OPTIONS+="last_rule"
28 KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620", OPTIONS+="last_rule"
29 KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty", OPTIONS+="last_rule"
30 KERNEL=="console", MODE="0600", OPTIONS+="last_rule"
31
32 # serial
33 KERNEL=="tty[A-Z]*|pppox*|ircomm*|noz*", GROUP="uucp"
34 KERNEL=="ppp", MODE="0600", OPTIONS+="ignore_remove"
35 KERNEL=="mwave", NAME="modems/mwave", GROUP="uucp"
36 KERNEL=="hvc*|hvsi*", GROUP="uucp"
37 KERNEL=="lirc0", SYMLINK+="lirc"
38
39 # mem
40 KERNEL=="null|zero|full|random|urandom", MODE="0666"
41 KERNEL=="null", SYMLINK+="X0R"
42 KERNEL=="mem|kmem|port|nvram", GROUP="kmem", MODE="0640"
43 KERNEL=="ram0", SYMLINK+="ramdisk"
44 KERNEL=="ram1", SYMLINK+="ram"
45
46 # input
47 KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
48 KERNEL=="ts[0-9]*|uinput", NAME="input/%k", MODE="0600"
49 KERNEL=="js[0-9]*", NAME="input/%k", MODE="0644", SYMLINK+="%k"
50
51 # video4linux
52 SUBSYSTEM=="video4linux", GROUP="video"
53 KERNEL=="vttuner*", GROUP="video"
54 KERNEL=="vtx*|vbi*", GROUP="video"
55 KERNEL=="winradio*", GROUP="video"
56 KERNEL=="vbi0", SYMLINK+="vbi"
57 KERNEL=="radio0", SYMLINK+="radio"
58 KERNEL=="video0", SYMLINK+="video"
59
60 # graphics
61 KERNEL=="agpgart", MODE="0600", GROUP="video"
62 KERNEL=="card[0-9]*", NAME="dri/%k", MODE="0666"
63 KERNEL=="fb0", SYMLINK+="fb"
64 KERNEL=="pmu", GROUP="video"
65 KERNEL=="nvidia*|nvidiactl*", GROUP="video"
66 SUBSYSTEM=="graphics", GROUP="video"
67
68 # DVB video
69 SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c"
70 SUBSYSTEM=="dvb", GROUP="video"
71
72 # Firewire
73 KERNEL=="dv1394*", SYMLINK+="dv1394/%n"
74 KERNEL=="video1394*", NAME="video1394/%n"
75 KERNEL=="dv1394*|video1394*|raw1394*", GROUP="video"
76
77 # firmware class requests
78 SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
79
80 # libusb device nodes
81 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
82
83 # printer
84 KERNEL=="parport[0-9]*", GROUP="lp"
85 SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
86 SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
87 KERNEL=="lp[0-9]*", GROUP="lp", SYMLINK+="par%n"
88 KERNEL=="irlpt[0-9]*", GROUP="lp"
89
90 # block, tapes, block-releated
91 SUBSYSTEM=="block", GROUP="disk"
92 SUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n"
93 KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", OPTIONS+="all_partitions"
94 KERNEL=="fd[0-9]", GROUP="floppy"
95 KERNEL=="fd[0-9]", ACTION=="add", ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0640 -G floppy $root/%k"
96 KERNEL=="sch[0-9]*", GROUP="disk"
97 KERNEL=="sg[0-9]*", ATTRS{type}!="3|6", GROUP="disk", MODE="0640"
98 KERNEL=="ht[0-9]*|nht[0-9]*", GROUP="disk"
99 KERNEL=="pg[0-9]*", GROUP="disk"
100 KERNEL=="pt[0-9]*|npt[0-9]*", GROUP="disk"
101 KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
102 KERNEL=="rawctl", NAME="raw/%k", GROUP="disk"
103 SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
104 KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
105 KERNEL=="pktcdvd", NAME="pktcdvd/control"
106 KERNEL=="qft0", SYMLINK+="ftape"
107 SUBSYSTEM=="bsg", NAME="bsg/%k"
108 SUBSYSTEM=="aoe", NAME="etherd/%k", GROUP="disk"
109
110 # network
111 KERNEL=="tun", NAME="net/%k", MODE="0666", OPTIONS+="ignore_remove"
112
113 # CPU
114 KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid"
115 KERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
116 KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
117
118 # miscellaneous
119 KERNEL=="fuse", MODE="0666"
120 KERNEL=="rtc|rtc0", MODE="0644"
121 KERNEL=="rtc0", SYMLINK+="rtc"
122 KERNEL=="auer[0-9]*", NAME="usb/%k"
123 KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
124 KERNEL=="mmtimer", MODE="0644"
125 KERNEL=="rflash[0-9]*", MODE="0400"
126 KERNEL=="rrom[0-9]*", MODE="0400"
127 KERNEL=="sbpcd0", SYMLINK+="sbpcd"
128 KERNEL=="slram[0-9]*", SYMLINK+="xpram%n"
129 KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
130 KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
131 KERNEL=="iowarrior[0-9]*", NAME="usb/%k"
132 KERNEL=="hiddev[0-9]*", NAME="usb/%k"
133 KERNEL=="legousbtower[0-9]*", NAME="usb/%k"
134 KERNEL=="dabusb[0-9]*", NAME="usb/%k"
135 KERNEL=="usbdpfp[0-9]*", NAME="usb/%k"
136 KERNEL=="cpad[0-9]*", NAME="usb/%k"
137
138 # do not delete static device nodes
139 ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", OPTIONS+="ignore_remove"