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