X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=rules%2Frules.d%2F80-drivers.rules;h=86eb9187a9bf5ed1cfdb446f88c55dd241d39160;hb=06ba47d8336c6d017a67d11f480341db07b9bc4b;hp=68420b9b1950b14612fab6c5ee40066e09122220;hpb=3dd8cbecde3c7708c5c5a71d4eb1dd042a5dc7fc;p=elogind.git diff --git a/rules/rules.d/80-drivers.rules b/rules/rules.d/80-drivers.rules index 68420b9b1..86eb9187a 100644 --- a/rules/rules.d/80-drivers.rules +++ b/rules/rules.d/80-drivers.rules @@ -1,15 +1,13 @@ # do not edit this file, it will be overwritten on update -ACTION!="add", GOTO="drivers_end" +ACTION=="remove", GOTO="drivers_end" -DRIVER!="?*", ENV{MODALIAS}=="?*", RUN{ignore_error}+="/sbin/modprobe -b $env{MODALIAS}" +DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -b $env{MODALIAS}" SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe -b tifm_sd" SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN+="/sbin/modprobe -b tifm_ms" SUBSYSTEM=="memstick", RUN+="/sbin/modprobe -b --all ms_block mspro_block" -SUBSYSTEM=="mmc", RUN+="/sbin/modprobe -b mmc_block" SUBSYSTEM=="i2o", RUN+="/sbin/modprobe -b i2o_block" SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -b sg" SUBSYSTEM=="module", KERNEL=="parport_pc", RUN+="/sbin/modprobe -b ppdev" LABEL="drivers_end" -