diff options
Diffstat (limited to 'disk/eudev/rules/52-modules.rules')
-rw-r--r-- | disk/eudev/rules/52-modules.rules | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/disk/eudev/rules/52-modules.rules b/disk/eudev/rules/52-modules.rules new file mode 100644 index 0000000000..fac6f9cb3a --- /dev/null +++ b/disk/eudev/rules/52-modules.rules @@ -0,0 +1,35 @@ +# Module loading rules for systems without hotplug + +# Autoload modules that lack aliases but have them defined in +# /etc/modprobe.conf +ENV{MODALIAS}!="?*", SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do /sbin/modprobe pnp:d$$id; done < /sys$devpath/id'" + +# Check whether we need these rules for this event +ACTION!="add", GOTO="modprobe_end" + +# Autoload modules with aliases +ATTRS{modalias}=="?*", ACTION=="add", RUN+="/sbin/modprobe $env{MODALIAS}" + +# PCMCIA +SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe pcmcia" + +# I2O +SUBSYSTEM!="i2o", GOTO="i2o_end" +RUN+="/sbin/modprobe i2o-block" +LABEL="i2o_end" + +# MMC +SUBSYSTEM!="mmc", GOTO="mmc_end" +RUN+="/sbin/modprobe mmc-block" +LABEL="mmc_end" + +# SCSI +SUBSYSTEM!="scsi_device", GOTO="scsi_device_end" +ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod" +ATTRS{type}=="1", ATTRS{vendor}=="Onstream", ATTRS{model}!="ADR*" RUN+="/sbin/modprobe osst" +ATTRS{type}=="1", RUN+="/sbin/modprobe st" +ATTRS{type}=="[345]", RUN+="/sbin/modprobe sr_mod" +RUN+="/sbin/modprobe sg" +LABEL="scsi_device_end" + +LABEL="modprobe_end" |