chiark / gitweb /
rules: Gentoo update
[elogind.git] / etc / udev / gentoo / 30-kernel-compat.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION!="add", GOTO="kernel_compat_end"
4
5 # workarounds needed to synchronize with sysfs
6 DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
7
8 # needed for kernels <2.6.16
9 SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
10
11 # needed for kernels <2.6.17
12 SUBSYSTEM=="net", ENV{PHYSDEVDRIVER}=="?*", WAIT_FOR_SYSFS="device/driver"
13
14
15
16 # needed for kernels <2.6.22
17 SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="usb", MODE="0664"
18
19
20
21 # this driver is broken and should not be loaded automatically
22 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398962
23 # needed for kernels <2.6.21
24 SUBSYSTEM=="platform", ENV{MODALIAS}=="i82365", ENV{MODALIAS}=""
25
26 # No need for more code, as MODALIAS is present
27 ENV{MODALIAS}=="?*", GOTO="kernel_compat_end"
28
29 # needed for kernels <2.6.22
30 SUBSYSTEM!="scsi_device", GOTO="kernel_compat_end"
31
32         # Parts taken from redhat-rules
33         # sd:           0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
34         # sr:           4 TYPE_WORM, 5 TYPE_ROM
35         # st/osst:      1 TYPE_TAPE
36
37         ATTRS{type}=="0|7|14",  RUN+="/sbin/modprobe sd_mod"
38         ATTRS{type}=="4|5",     RUN+="/sbin/modprobe sr_mod"
39         ATTRS{type}=="8",       RUN+="/sbin/modprobe ch"
40
41         ATTRS{type}=="1", ATTRS{vendor}=="On[sS]tream", \
42                 ATTRS{model}!="ADR*", RUN+="/sbin/modprobe osst", GOTO="kernel_compat_end"
43         ATTRS{type}=="1", RUN+="/sbin/modprobe st"
44
45 LABEL="kernel_compat_end"
46
47