summaryrefslogtreecommitdiffstats
path: root/hooks/pci
blob: d158d25b334dfb713913e0cf8db715fe4001850c (plain)
1
2
3
4
5
6
7
8
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
}