diff options
Diffstat (limited to 'install/usbinput')
-rw-r--r-- | install/usbinput | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/install/usbinput b/install/usbinput index e4bf27e..aa4e1a6 100644 --- a/install/usbinput +++ b/install/usbinput @@ -1,24 +1,18 @@ -# vim: set ft=sh: +#!/bin/bash -build() -{ - MODULES=" $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl811_hcd" -e "isp116x_hcd") " - MODULES=" $(echo ${MODULES}) $(all_modules "/hid/hid-") " +build() { + MODULES=" $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl811_hcd" -e "isp116x_hcd")" + MODULES+=" $(all_modules "/hid/hid-")" - MODULES=$(echo ${MODULES}) #trim whitespace - if [ -n "${MODULES}" ]; then - MODULES="${MODULES} usbhid" - fi - BINARIES="" - FILES="" - SCRIPT="" + [[ $MODULES ]] && MODULES+=" usbhid" } -help () -{ -cat<<HELPEOF - This hook loads the necessary modules for an usb input device. - Detection will take place at runtime. To minimize the modules - in the image, add the autodetect hook too. +help() { + cat <<HELPEOF +This hook loads the necessary modules for an usb input 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: |