mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 05:22:59 +02:00
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@671 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
19 lines
868 B
Plaintext
19 lines
868 B
Plaintext
# /etc/udev/rules.d/26-modprobe.rules: Rules that require modprobe.
|
|
|
|
# Generic rule to allow loading modular drivers for existing hardware
|
|
|
|
ACTION=="add", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
|
|
|
|
# SCSI devices require different modules, dependent on their SYSFS{type}. All
|
|
# of them require 'sg' though.
|
|
#
|
|
# module name sysfs types
|
|
# sd 0 (TYPE_DISK), 7 (TYPE_MOD), 14 (TYPE_MOD)
|
|
# st/osst 1 (TYPE_TAPE)
|
|
# sr 4 (TYPE_WORM), 5 (TYPE_ROM)
|
|
|
|
SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
|
|
SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="1", RUN+="/sbin/modprobe st"
|
|
SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
|
|
SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg"
|