summaryrefslogtreecommitdiffstats
path: root/hooks/usb
blob: ece3950eae5218876c19a7a5181fe8cb2d2d526d (plain)
1
2
3
4
5
6
7
8
9
10
# vim: set ft=sh:
run_hook ()
{
    msg -n "Loading usb modules..."
    /bin/modprobe -aq $(/bin/cat /sys/bus/usb/devices/*/modalias) >/dev/null 2>&1
    #allow 'usbdelay' on the kernel param line
    msg -n "waiting for usb to settle..."
    /bin/sleep ${usbdelay:-5}
    msg "done."
}