chiark / gitweb /
rules: Gentoo update
[elogind.git] / rules / gentoo / 30-kernel-compat.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION!="add|change", GOTO="kernel_compat_end"
4
5 #
6 # naming device rules
7 #
8
9 # dvb device naming
10 # needed for kernels <2.6.29-rc1
11 SUBSYSTEM=="dvb", ENV{DVB_ADAPTER_NUM}=="", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
12
13 #
14 # module loading rules
15 #
16 ACTION!="add", GOTO="kernel_compat_end"
17
18 # No need for more code, as MODALIAS is present
19 ENV{MODALIAS}=="?*", GOTO="kernel_compat_end"
20
21 # needed for kernel <2.6.30-rc1
22 SUBSYSTEM=="scsi", ATTR{type}=="8", RUN+="/sbin/modprobe -b ch"
23
24 # needed for kernel <2.6.27-rc5
25 # acpi will do on newer kernels
26 SUBSYSTEM=="pnp", DRIVER!="?*", \
27   RUN{ignore_error}+="/bin/sh -c '/sbin/modprobe -a $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
28
29 LABEL="kernel_compat_end"