diff options
author | Richard Yao <ryao@gentoo.org> | 2012-11-23 00:20:15 -0500 |
---|---|---|
committer | Richard Yao <ryao@cs.stonybrook.edu> | 2012-11-23 01:55:28 -0500 |
commit | 3bb4e05ce4a1c9ac1339b451c4c18cfef8bcbeb9 (patch) | |
tree | 2acd2e37eae53b80ed9b933fee254772246eb4ef /rules/80-drivers.rules | |
parent | c4d1ce9b754e6eed60d2625cc4fff224898aa5d5 (diff) |
Permit users to disable module loading support
Inspired by e30431623a7d871da123cc37055ac49abf2c20ea from systemd.
Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'rules/80-drivers.rules')
-rw-r--r-- | rules/80-drivers.rules | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/80-drivers.rules b/rules/80-drivers.rules index 692510c912..3428cb28c9 100644 --- a/rules/80-drivers.rules +++ b/rules/80-drivers.rules @@ -3,6 +3,7 @@ ACTION=="remove", GOTO="drivers_end" DRIVER!="?*", ENV{MODALIAS}=="?*", IMPORT{builtin}="kmod load $env{MODALIAS}" +KERNEL=="mtd*ro", ENV{MTD_FTL}=="smartmedia", IMPORT{builtin}="kmod load sm_ftl" SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", IMPORT{builtin}="kmod load tifm_sd" SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", IMPORT{builtin}="kmod load tifm_ms" SUBSYSTEM=="memstick", IMPORT{builtin}="kmod load ms_block mspro_block" |