Annotation of /trunk/udev/udev.rules.magellan
Parent Directory | Revision Log
Revision 823 -
(hide annotations)
(download)
Sat May 23 22:35:53 2009 UTC (15 years, 4 months ago) by niro
File size: 5279 byte(s)
Sat May 23 22:35:53 2009 UTC (15 years, 4 months ago) by niro
File size: 5279 byte(s)
-updated rules to match udev-142
1 | niro | 121 | # /etc/udev/rules/50-udev.rules: device naming rules for udev |
2 | niro | 823 | # $Header: /root/magellan-cvs/src/udev/udev.rules.magellan,v 1.9 2009-05-23 22:35:53 niro Exp $ |
3 | niro | 121 | # |
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 | niro | 760 | # initramfs:default |
21 | niro | 121 | |
22 | niro | 717 | SUBSYSTEM=="block", SYMLINK+="block/%M:%m" |
23 | SUBSYSTEM!="block", SYMLINK+="char/%M:%m" | ||
24 | niro | 121 | |
25 | niro | 760 | KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660" |
26 | KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660" | ||
27 | KERNEL=="ptmx", GROUP="tty", MODE="0666" | ||
28 | KERNEL=="tty", GROUP="tty", MODE="0666" | ||
29 | KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620" | ||
30 | niro | 823 | KERNEL=="console", MODE="0600" |
31 | niro | 760 | KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty" |
32 | niro | 717 | |
33 | niro | 515 | # serial |
34 | niro | 823 | KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout" |
35 | niro | 760 | KERNEL=="ppp", MODE="0600" |
36 | KERNEL=="mwave", NAME="modems/mwave", GROUP="dialout" | ||
37 | KERNEL=="hvc*|hvsi*", GROUP="dialout" | ||
38 | niro | 121 | |
39 | niro | 515 | # mem |
40 | KERNEL=="null|zero|full|random|urandom", MODE="0666" | ||
41 | niro | 717 | KERNEL=="mem|kmem|port|nvram", GROUP="kmem", MODE="0640" |
42 | niro | 121 | |
43 | niro | 515 | # input |
44 | KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640" | ||
45 | niro | 760 | KERNEL=="ts[0-9]*|uinput", NAME="input/%k", MODE="0640" |
46 | KERNEL=="js[0-9]*", NAME="input/%k", MODE="0644" | ||
47 | niro | 121 | |
48 | niro | 515 | # video4linux |
49 | niro | 717 | SUBSYSTEM=="video4linux", GROUP="video" |
50 | KERNEL=="vttuner*", GROUP="video" | ||
51 | KERNEL=="vtx*|vbi*", GROUP="video" | ||
52 | KERNEL=="winradio*", GROUP="video" | ||
53 | niro | 121 | |
54 | niro | 515 | # graphics |
55 | niro | 717 | KERNEL=="agpgart", MODE="0600", GROUP="video" |
56 | niro | 760 | KERNEL=="card[0-9]*", NAME="dri/%k" |
57 | niro | 717 | KERNEL=="pmu", GROUP="video" |
58 | KERNEL=="nvidia*|nvidiactl*", GROUP="video" | ||
59 | SUBSYSTEM=="graphics", GROUP="video" | ||
60 | niro | 760 | SUBSYSTEM=="drm", GROUP="video" |
61 | niro | 121 | |
62 | niro | 760 | # DVB (video) |
63 | SUBSYSTEM=="dvb", ENV{DVB_ADAPTER_NUM}=="?*", NAME="dvb/adapter$env{DVB_ADAPTER_NUM}/$env{DVB_DEVICE_TYPE}$env{DVB_DEVICE_NUM}", GROUP="video" | ||
64 | niro | 121 | |
65 | niro | 515 | # Firewire |
66 | niro | 823 | KERNEL=="dv1394-[0-9]*", NAME="dv1394/%n", GROUP="video" |
67 | KERNEL=="video1394-[0-9]*", NAME="video1394/%n", GROUP="video" | ||
68 | niro | 121 | |
69 | niro | 515 | # libusb device nodes |
70 | niro | 760 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0664" |
71 | niro | 121 | |
72 | niro | 515 | # printer |
73 | KERNEL=="parport[0-9]*", GROUP="lp" | ||
74 | SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp" | ||
75 | niro | 760 | SUBSYSTEM=="ppdev", GROUP="lp" |
76 | niro | 515 | SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp" |
77 | niro | 760 | KERNEL=="lp[0-9]*", GROUP="lp" |
78 | niro | 515 | KERNEL=="irlpt[0-9]*", GROUP="lp" |
79 | niro | 121 | |
80 | niro | 760 | # block |
81 | niro | 717 | SUBSYSTEM=="block", GROUP="disk" |
82 | niro | 760 | |
83 | # floppy | ||
84 | KERNEL=="fd[0-9]", GROUP="floppy" | ||
85 | KERNEL=="fd[0-9]", ACTION=="add", ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0640 -G floppy $root/%k" | ||
86 | niro | 515 | KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", OPTIONS+="all_partitions" |
87 | niro | 760 | |
88 | # cdrom | ||
89 | SUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n", GROUP="cdrom" | ||
90 | SUBSYSTEM=="block", KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="cdrom", GROUP="cdrom" | ||
91 | SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom" | ||
92 | KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k", GROUP="cdrom" | ||
93 | KERNEL=="pktcdvd", NAME="pktcdvd/control", GROUP="cdrom" | ||
94 | |||
95 | # tape | ||
96 | KERNEL=="ht[0-9]*|nht[0-9]*", GROUP="tape" | ||
97 | KERNEL=="pt[0-9]*|npt[0-9]*|pht[0-9]*", GROUP="tape" | ||
98 | SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape" | ||
99 | |||
100 | # block-releated | ||
101 | KERNEL=="sch[0-9]*", GROUP="disk" | ||
102 | SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk" | ||
103 | KERNEL=="pg[0-9]*", GROUP="disk" | ||
104 | niro | 515 | KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk" |
105 | niro | 760 | KERNEL=="rawctl", NAME="raw/rawctl", GROUP="disk" |
106 | niro | 515 | SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk" |
107 | niro | 760 | SUBSYSTEM=="bsg", NAME="bsg/%k" |
108 | SUBSYSTEM=="aoe", NAME="etherd/%k", GROUP="disk", MODE="0220" | ||
109 | SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440" | ||
110 | niro | 121 | |
111 | niro | 515 | # network |
112 | niro | 760 | KERNEL=="tun", NAME="net/%k", MODE="0666" |
113 | niro | 121 | |
114 | niro | 515 | # CPU |
115 | niro | 823 | KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid", MODE="0444" |
116 | niro | 515 | KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" |
117 | KERNEL=="microcode", NAME="cpu/microcode", MODE="0600" | ||
118 | niro | 121 | |
119 | niro | 515 | # miscellaneous |
120 | KERNEL=="fuse", MODE="0666" | ||
121 | niro | 760 | SUBSYSTEM=="rtc", DRIVERS=="rtc_cmos", SYMLINK+="rtc" |
122 | niro | 515 | KERNEL=="auer[0-9]*", NAME="usb/%k" |
123 | niro | 760 | KERNEL=="hw_random", NAME="hwrng" |
124 | niro | 515 | KERNEL=="mmtimer", MODE="0644" |
125 | KERNEL=="rflash[0-9]*", MODE="0400" | ||
126 | KERNEL=="rrom[0-9]*", MODE="0400" | ||
127 | niro | 760 | KERNEL=="sxctl", NAME="specialix_sxctl" |
128 | KERNEL=="rioctl", NAME="specialix_rioctl" | ||
129 | niro | 515 | KERNEL=="iowarrior[0-9]*", NAME="usb/%k" |
130 | niro | 717 | KERNEL=="hiddev[0-9]*", NAME="usb/%k" |
131 | KERNEL=="legousbtower[0-9]*", NAME="usb/%k" | ||
132 | KERNEL=="dabusb[0-9]*", NAME="usb/%k" | ||
133 | KERNEL=="usbdpfp[0-9]*", NAME="usb/%k" | ||
134 | KERNEL=="cpad[0-9]*", NAME="usb/%k" | ||
135 | niro | 121 | |
136 | niro | 515 | # do not delete static device nodes |
137 | ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", OPTIONS+="ignore_remove" | ||
138 | niro | 760 | ACTION=="remove", NAME=="", TEST=="/lib/udev/devices/%k", OPTIONS+="ignore_remove" |