#!/bin/bash

build() {
    if add_checked_modules -f '(_cs|sl811_hcd|isp116x_hcd)' '/usb/host'; then
        add_module 'usb_storage?'
        add_module 'sd_mod?'
        add_module 'sr_mod?'
        add_checked_modules 'drivers/usb/storage/ums-*'
    fi
}

help() {
    cat <<HELPEOF
This hook loads the necessary modules for an usb root device.  Detection will
take place at runtime. To minimize the modules in the image, add the autodetect
hook too.
HELPEOF
}

# vim: set ft=sh ts=4 sw=4 et: