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