Browse Source

Improved udev's 80-drivers to load modules for pnp devices without $MODALIAS and modules for tifm

- taken from http://git.kernel.org/?p=linux%2Fhotplug%2Fudev.git;a=commitdiff_plain;h=2e23125e112c0a56e1ccee193c2cfe0e26af1bad
early
Alejandro Mery 17 years ago
parent
commit
d1a7d7d133
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      filesystem/udev/rules/80-drivers.rules

+ 4
- 0
filesystem/udev/rules/80-drivers.rules

@ -5,6 +5,10 @@ ACTION!="add", GOTO="drivers_end"
# hotplug
ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", RUN+="/bin/sh -c 'while read id; do /sbin/modprobe pnp:d$$id; done < /sys$devpath/id'"
SUBSYSTEM=="tifm", RUN+="/sbin/modprobe --all tifm_sd tifm_ms"
# scsi
# sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
# sr: 4 TYPE_WORM, 5 TYPE_ROM

Loading…
Cancel
Save