summaryrefslogtreecommitdiffstats
path: root/hooks/base
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/base')
-rw-r--r--hooks/base9
1 files changed, 9 insertions, 0 deletions
diff --git a/hooks/base b/hooks/base
new file mode 100644
index 0000000..706fb85
--- /dev/null
+++ b/hooks/base
@@ -0,0 +1,9 @@
+# vim:set ft=sh:
+run_hook ()
+{
+ if [ -e "/sys/bus/pci" ]; then
+ msg -n "Loading base modules..."
+ /bin/modprobe -a -q $(/bin/cat /sys/bus/pci/devices/*/modalias) >/dev/null 2>&1 &
+ msg "done."
+ fi
+}