Magellan Linux

Contents of /trunk/udev/udev.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log


Revision 515 - (show annotations) (download)
Sat Mar 22 18:12:38 2008 UTC (16 years, 1 month ago) by niro
File size: 5112 byte(s)
-updated to upstream 119 rules

1 # /etc/udev/rules/50-udev.rules: device naming rules for udev
2 # $Header: /root/magellan-cvs/src/udev/udev.rules.magellan,v 1.5 2008-03-22 18:12:38 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 KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS="last_rule"
22 KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS="last_rule"
23 KERNEL=="ptmx", GROUP="tty", MODE="0666", OPTIONS="last_rule"
24 KERNEL=="tty", GROUP="tty", MODE="0666", OPTIONS="last_rule"
25 KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620", OPTIONS="last_rule"
26 KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty", OPTIONS="last_rule"
27 KERNEL=="console", MODE="0600", OPTIONS="last_rule"
28
29 # serial
30 KERNEL=="tty[A-Z]*|pppox*|ircomm*|noz*", GROUP="uucp"
31 KERNEL=="ppp", MODE="0600", OPTIONS+="ignore_remove"
32 KERNEL=="mwave", NAME="modems/mwave", GROUP="uucp"
33 KERNEL=="hvc*|hvsi*", GROUP="uucp"
34 KERNEL=="lirc0", SYMLINK+="lirc"
35
36 # mem
37 KERNEL=="null|zero|full|random|urandom", MODE="0666"
38 KERNEL=="null", SYMLINK+="XOR"
39 KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
40 KERNEL=="ram0", SYMLINK+="ramdisk"
41 KERNEL=="ram1", SYMLINK+="ram"
42
43 # input
44 KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
45 KERNEL=="ts[0-9]*|uinput", NAME="input/%k", MODE="0600"
46 KERNEL=="js[0-9]*", NAME="input/%k", MODE="0644", SYMLINK+="%k"
47
48 # video4linux
49 KERNEL=="vbi0", SYMLINK+="vbi"
50 KERNEL=="radio0", SYMLINK+="radio"
51 KERNEL=="video0", SYMLINK+="video"
52
53 # graphics
54 KERNEL=="agpgart", MODE="0600"
55 KERNEL=="card[0-9]*", NAME="dri/%k", MODE="0666"
56 KERNEL=="fb0", SYMLINK+="fb"
57
58 # DVB video
59 SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c"
60
61 # Firewire
62 KERNEL=="dv1394*", SYMLINK+="dv1394/%n"
63 KERNEL=="video1394*", NAME="video1394/%n"
64
65 # firmware class requests
66 SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
67
68 # libusb device nodes
69 SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
70
71 # printer
72 KERNEL=="parport[0-9]*", GROUP="lp"
73 SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
74 SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
75 KERNEL=="lp[0-9]*", GROUP="lp", SYMLINK+="par%n"
76 KERNEL=="irlpt[0-9]*", GROUP="lp"
77
78 # block, tapes, block-releated
79 SUBSYSTEM=="block", GROUP="disk", MODE="0640"
80 SUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n"
81 SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", ACTION=="add", ATTR{type}=="0|7|14", ATTR{timeout}="60"
82 SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", ACTION=="add", ATTR{type}=="1", ATTR{timeout}="900"
83 KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", OPTIONS+="all_partitions"
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 KERNEL=="sch[0-9]*", GROUP="disk"
87 KERNEL=="sg[0-9]*", ATTRS{type}!="3|6", GROUP="disk", MODE="0640"
88 KERNEL=="ht[0-9]*|nht[0-9]*", GROUP="disk"
89 KERNEL=="pg[0-9]*", GROUP="disk"
90 KERNEL=="pt[0-9]*|npt[0-9]*", GROUP="disk"
91 KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
92 KERNEL=="rawctl", NAME="raw/%k", GROUP="disk"
93 SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
94 KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
95 KERNEL=="pktcdvd", NAME="pktcdvd/control"
96 KERNEL=="qft0", SYMLINK+="ftape"
97 SUBSYSTEM=="bsg", NAME="bsg/%k"
98 SUBSYSTEM=="aoe", NAME="etherd/%k", GROUP="disk"
99
100 # network
101 KERNEL=="tun", NAME="net/%k", MODE="0666", OPTIONS+="ignore_remove"
102
103 # CPU
104 KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid"
105 KERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
106 KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
107
108 # miscellaneous
109 KERNEL=="fuse", MODE="0666"
110 KERNEL=="rtc|rtc0", MODE="0644"
111 KERNEL=="rtc0", SYMLINK+="rtc"
112 KERNEL=="auer[0-9]*", NAME="usb/%k"
113 KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
114 KERNEL=="mmtimer", MODE="0644"
115 KERNEL=="rflash[0-9]*", MODE="0400"
116 KERNEL=="rrom[0-9]*", MODE="0400"
117 KERNEL=="sbpcd0", SYMLINK+="sbpcd"
118 KERNEL=="slram[0-9]*", SYMLINK+="xpram%n"
119 KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
120 KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
121 KERNEL=="iowarrior[0-9]*", NAME="usb/%k"
122
123 # do not delete static device nodes
124 ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", OPTIONS+="ignore_remove"