diff options
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/pci | 9 |
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 +} |