chiark / gitweb /
update SUSE rules
[elogind.git] / etc / udev / suse / 50-udev-default.rules
1 # console
2 KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
3 KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
4 KERNEL=="vcs*",                 GROUP="tty", MODE="620", OPTIONS="last_rule"
5 KERNEL=="vcsa*",                GROUP="tty", MODE="620", OPTIONS="last_rule"
6 KERNEL=="tty",                  GROUP="tty", MODE="666", OPTIONS="last_rule"
7 KERNEL=="tty[0-9]*",            GROUP="tty", MODE="620", OPTIONS="last_rule"
8 KERNEL=="console",              MODE="600", OPTIONS="last_rule"
9 KERNEL=="ptmx",                 GROUP="tty", MODE="666", OPTIONS="last_rule"
10
11 # serial devices
12 KERNEL=="tty[A-Z]*",            GROUP="uucp"
13 KERNEL=="pppox*",               GROUP="uucp"
14 KERNEL=="ircomm*",              GROUP="uucp"
15 KERNEL=="modems/mwave*",        GROUP="uucp"
16 KERNEL=="hvc*|hvsi*",           GROUP="uucp"
17 KERNEL=="iseries/vtty*",        GROUP="uucp"
18 KERNEL=="ttyUSB*", SYSFS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
19 KERNEL=="ttyUSB*", SYSFS{product}=="[Hh]andspring*Treo*|[Hh]andspring*Visor*", SYMLINK+="pilot"
20
21 # video/graphics
22 SUBSYSTEM=="video4linux",       GROUP="video"
23 SUBSYSTEM=="graphics"           GROUP="video"
24 KERNEL=="vtx*|vbi*",            GROUP="video"
25 KERNEL=="winradio*",            GROUP="video"
26 KERNEL=="vttuner*",             GROUP="video"
27 KERNEL=="nvidia*|nvidiactl*",   GROUP="video"
28 KERNEL=="video0",               SYMLINK+="video"
29 KERNEL=="radio0",               SYMLINK+="radio"
30 KERNEL=="vbi0",                 SYMLINK+="vbi"
31 KERNEL=="pmu",                  GROUP="video"
32
33 # dvb
34 SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
35
36 # input devices
37 KERNEL=="mouse*|mice",          NAME="input/%k", MODE="0640"
38 KERNEL=="event*",               NAME="input/%k", MODE="0640"
39 KERNEL=="js*",                  NAME="input/%k", MODE="0644"
40 KERNEL=="ts*",                  NAME="input/%k", MODE="0600"
41 KERNEL=="uinput",               NAME="input/%k", MODE="0600"
42 KERNEL=="lirc0",                SYMLINK+="lirc"
43
44 # printer
45 SUBSYSTEM=="usb",               KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
46 SUBSYSTEM=="printer",           KERNEL=="lp*", GROUP="lp"
47 KERNEL=="irlpt*",               GROUP="lp"
48
49 # cpu devices
50 KERNEL=="cpu[0-9]*",            NAME="cpu/%n/cpuid"
51 KERNEL=="msr[0-9]*",            NAME="cpu/%n/msr"
52 KERNEL=="microcode",            NAME="cpu/microcode", MODE="0600"
53
54 # IEEE1394 devices
55 KERNEL=="raw1394*",             GROUP="video"
56 KERNEL=="dv1394*",              SYMLINK+="dv1394/%n", GROUP="video"
57 KERNEL=="video1394*",           SYMLINK+="video1394/%n", GROUP="video"
58
59 KERNEL=="hw_random",            NAME="hwrng", SYMLINK+="%k"
60 KERNEL=="mwave",                NAME="modems/%k"
61 KERNEL=="rioctl",               NAME="specialix_rioctl", SYMLINK+="%k"
62 KERNEL=="sxctl",                NAME="specialix_sxctl", SYMLINK+="%k"
63
64 # network
65 KERNEL=="tun",                  NAME="net/%k", MODE="0600"
66
67 # misc devices
68 KERNEL=="mem|kmem",             GROUP="kmem", MODE="640"
69 KERNEL=="port",                 GROUP="kmem", MODE="640"
70 KERNEL=="nvram",                GROUP="kmem", MODE="600"
71 KERNEL=="null",                 MODE="666"
72 KERNEL=="zero",                 MODE="666"
73 KERNEL=="full",                 MODE="622"
74 KERNEL=="random",               MODE="666"
75 KERNEL=="urandom",              MODE="644"
76 KERNEL=="rtc",                  MODE="600"
77 KERNEL=="sonypi",               MODE="0666"
78 KERNEL=="agpgart",              MODE="0600", GROUP="video"
79 KERNEL=="djs*",                 MODE="644"
80 KERNEL=="sgi_*",                MODE="666"
81 KERNEL=="rrom*",                MODE="400"
82 KERNEL=="rflash*",              MODE="400"
83 KERNEL=="usbscanner*",          MODE="644"
84 KERNEL=="3270/ttycons*",        MODE="600"
85 KERNEL=="3270/tub*",            MODE="666"
86 KERNEL=="3270/tubcons*",        MODE="600"
87 KERNEL=="ica",                  MODE="666"
88 KERNEL=="z90crypt",             MODE="666"
89 KERNEL=="mmtimer",              MODE="644"
90 KERNEL=="auer[0-9]*"            NAME="usb/%k"
91
92 # packet writing interface
93 KERNEL=="pktcdvd",              NAME="pktcdvd/control"
94 KERNEL=="pktcdvd[0-9]*",        NAME="pktcdvd/%k"
95
96 # fix floppy devices
97 KERNEL=="nvram", ACTION=="add", RUN+="load_floppy_module.sh"
98 KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{cmos} -m %M /dev/%k"
99 KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
100
101 # block devices
102 SUBSYSTEM=="block", GROUP="disk", MODE="0640"
103
104 # sd:           0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
105 # sr:           4 TYPE_WORM, 5 TYPE_ROM
106 # st/osst:      1 TYPE_TAPE
107 SUBSYSTEM=="scsi", ACTION=="add", SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys$$DEVPATH/timeout'"
108 SUBSYSTEM=="scsi", ACTION=="add", SYSFS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys$$DEVPATH/timeout'"
109 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
110 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="1", SYSFS{vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst"
111 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="1", RUN+="/sbin/modprobe st"
112 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
113 SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg"
114 KERNEL=="hd*", BUS=="ide", SYSFS{media}=="floppy", OPTIONS+="all_partitions"
115 SUBSYTEM=="ide", ACTION=="add", SYSFS{media}=="tape", RUN+="/sbin/modprobe ide-scsi"
116
117 # misc storage devices (non-block)
118 KERNEL=="sg*",                  GROUP="disk", MODE="640"
119 KERNEL=="st*|nst*",             GROUP="disk"
120 KERNEL=="qft*|nqft*|zqft*|nzqft*|rawqft*|nrawqft", GROUP="disk"
121 KERNEL=="ht*|nht*",             GROUP="disk"
122 KERNEL=="pf*",                  GROUP="disk"
123 KERNEL=="sch*",                 GROUP="disk"
124 KERNEL=="pt*|npt*",             GROUP="disk"
125 KERNEL=="pg*",                  GROUP="disk"
126 KERNEL=="evms/block_device*",   GROUP="disk"
127 KERNEL=="rawctl*|raw[0-9]*",    NAME="raw/%k", GROUP="disk"
128 KERNEL=="osst*|nosst*",         NAME="%k", GROUP="disk"
129 KERNEL=="iseries/vt*",          NAME="%k", GROUP="disk"
130 KERNEL=="iseries/nvt*",         NAME="%k", GROUP="disk"
131 KERNEL=="iseries/ibmsis*",      NAME="%k", GROUP="disk"
132
133 # libusb device access
134 SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
135
136 # kernel firmware loader
137 SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
138