Systemd/rules/gentoo/30-kernel-compat.rules

30 lines
847 B
Plaintext
Raw Normal View History

2007-08-29 13:19:16 +02:00
# do not edit this file, it will be overwritten on update
2008-11-25 17:13:07 +01:00
ACTION!="add|change", GOTO="kernel_compat_end"
#
# naming device rules
#
2007-08-29 13:19:16 +02:00
2009-06-14 18:27:52 +02:00
# dvb device naming
# needed for kernels <2.6.29-rc1
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"
2007-08-29 13:19:16 +02:00
2008-11-25 17:13:07 +01:00
#
# module loading rules
#
ACTION!="add", GOTO="kernel_compat_end"
2007-08-29 13:19:16 +02:00
# No need for more code, as MODALIAS is present
ENV{MODALIAS}=="?*", GOTO="kernel_compat_end"
2009-06-14 18:27:52 +02:00
# needed for kernel <2.6.30-rc1
SUBSYSTEM=="scsi", ATTR{type}=="8", RUN+="/sbin/modprobe -b ch"
2008-11-25 17:13:07 +01:00
# needed for kernel <2.6.27-rc5
# acpi will do on newer kernels
SUBSYSTEM=="pnp", DRIVER!="?*", \
RUN{ignore_error}+="/bin/sh -c '/sbin/modprobe -a $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
2009-06-16 00:44:39 +02:00
LABEL="kernel_compat_end"