summaryrefslogtreecommitdiffstats
path: root/install/usb
blob: 2b36c35fecc3b63354696f14aa85cd69e415e841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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: