From 22594f7e80a524410e7e9ca194af025d3710fd91 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 10 Oct 2007 11:22:17 -0400 Subject: [PATCH] Cleaned udev's 80-drivers.rules to diff better against the one provided on the base set by udev 115 --- filesystem/udev/rules/80-drivers.rules | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/filesystem/udev/rules/80-drivers.rules b/filesystem/udev/rules/80-drivers.rules index ae0548c03..b6663c0c2 100644 --- a/filesystem/udev/rules/80-drivers.rules +++ b/filesystem/udev/rules/80-drivers.rules @@ -2,20 +2,13 @@ ACTION!="add", GOTO="drivers_end" -# hotplug DRIVER!="?*", ENV{MODALIAS}=="?*", RUN{ignore_error}+="/sbin/modprobe $env{MODALIAS}" - -SUBSYSTEM=="pnp", DRIVER!="?*", ENV{MODALIAS}!="?*", RUN{ignore_error}+="/bin/sh -c 'while read id; do /sbin/modprobe pnp:d$$id; done < /sys$devpath/id'" - +SUBSYSTEM=="pnp", DRIVER!="?*", ENV{MODALIAS}!="?*", \ + RUN{ignore_error}+="/bin/sh -c '/sbin/modprobe -a $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'" SUBSYSTEM=="tifm", RUN+="/sbin/modprobe --all tifm_sd tifm_ms" - -# mmc SUBSYSTEM=="mmc", RUN+="/sbin/modprobe mmc_block" -# ide SUBSYSTEM=="ide", ATTR{media}=="tape", RUN+="/sbin/modprobe ide-scsi" -# scsi SUBSYSTEM=="scsi", ATTRS{type}=="0", RUN+="/sbin/modprobe sd_mod" - SUBSYSTEM=="scsi_device", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod" SUBSYSTEM=="scsi_device", ATTRS{type}=="1", ATTR{vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst" SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe st"