diff options
author | Matthias Hentges <oe@hentges.net> | 2007-06-30 18:20:33 +0000 |
---|---|---|
committer | Matthias Hentges <oe@hentges.net> | 2007-06-30 18:20:33 +0000 |
commit | 4e2594811904a36794d8e51ea7c07f2566797079 (patch) | |
tree | 51aa0aa0f5beb7b27bb12c52607ac6d57b8e1e8d /packages/usb-gadget-mode/files | |
parent | ee47c478e20cb18c389ae5b5eca09c103e1f051a (diff) |
usb-gadget-mode: Add support for host-mode
Diffstat (limited to 'packages/usb-gadget-mode/files')
-rw-r--r-- | packages/usb-gadget-mode/files/spitz/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/usb-gadget-mode/files/spitz/usb-gadget.conf | 3 | ||||
-rwxr-xr-x | packages/usb-gadget-mode/files/usb-gadget | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/packages/usb-gadget-mode/files/spitz/.mtn2git_empty b/packages/usb-gadget-mode/files/spitz/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/usb-gadget-mode/files/spitz/.mtn2git_empty diff --git a/packages/usb-gadget-mode/files/spitz/usb-gadget.conf b/packages/usb-gadget-mode/files/spitz/usb-gadget.conf new file mode 100644 index 0000000000..717687d4c3 --- /dev/null +++ b/packages/usb-gadget-mode/files/spitz/usb-gadget.conf @@ -0,0 +1,3 @@ +USB_MODE="networking" +MODULE_OPTIONS="" + diff --git a/packages/usb-gadget-mode/files/usb-gadget b/packages/usb-gadget-mode/files/usb-gadget index 4fdc429f5b..6f957fd263 100755 --- a/packages/usb-gadget-mode/files/usb-gadget +++ b/packages/usb-gadget-mode/files/usb-gadget @@ -9,6 +9,7 @@ ################################################################################# # # 20070606 - v0.0.1 - Initial release +# 20070630 - v0.0.2 - Add forgotten host mode CONF_FILE="/etc/default/usb-gadget" @@ -23,6 +24,8 @@ go() { case "$USB_MODE" in networking) setup_usb g_ether "$MODULE_OPTIONS" ;; storage) setup_usb g_file_storage "$MODULE_OPTIONS" ;; + hostmode) unload_usb_gadgets + setup_usb ohci_hcd "$MODULE_OPTIONS" ;; none) unload_usb_gadgets ;; esac |