summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2013-08-01 15:47:58 -0400
committerIan Stakenvicius <axs@gentoo.org>2013-08-01 15:57:04 -0400
commitc8cbcb8899e2e317809e653c74160fd2b2d719a4 (patch)
tree401adcc7bbe563ed0498c788763442d18c37d6ca
parent9f49634fa3a6a5ac40bc8ff5d1c82c56eb38eef4 (diff)
provide alternative 80-drivers.rules for --disable-kmod
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
-rw-r--r--rules/80-drivers-modprobe.rules13
-rw-r--r--rules/Makefile.am5
2 files changed, 18 insertions, 0 deletions
diff --git a/rules/80-drivers-modprobe.rules b/rules/80-drivers-modprobe.rules
new file mode 100644
index 0000000000..14c5b873bb
--- /dev/null
+++ b/rules/80-drivers-modprobe.rules
@@ -0,0 +1,13 @@
+# do not edit this file, it will be overwritten on update
+
+ACTION=="remove", GOTO="drivers_end"
+
+ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
+SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe tifm_sd"
+SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN+="/sbin/modprobe tifm_ms"
+SUBSYSTEM=="memstick", RUN+="/sbin/modprobe ms_block mspro_block"
+SUBSYSTEM=="i2o", RUN+="/sbin/modprobe i2o_block"
+SUBSYSTEM=="module", KERNEL=="parport_pc", RUN+="/sbin/modprobe ppdev"
+KERNEL=="mtd*ro", ENV{MTD_FTL}=="smartmedia", RUN+="/sbin/modprobe sm_ftl"
+
+LABEL="drivers_end"
diff --git a/rules/Makefile.am b/rules/Makefile.am
index abc290111e..7d554ac1f9 100644
--- a/rules/Makefile.am
+++ b/rules/Makefile.am
@@ -33,8 +33,13 @@ dist_udevrules_DATA += \
endif
if HAVE_MODULES
+if HAVE_KMOD
dist_udevrules_DATA += \
80-drivers.rules
+else
+dist_udevrules_DATA += \
+ 80-drivers-modprobe.rules
+endif
endif
if ENABLE_KEYMAP