summaryrefslogtreecommitdiff
path: root/packages/usb-gadget-mode/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/usb-gadget-mode/files')
-rw-r--r--packages/usb-gadget-mode/files/spitz/.mtn2git_empty0
-rw-r--r--packages/usb-gadget-mode/files/spitz/usb-gadget.conf3
-rwxr-xr-xpackages/usb-gadget-mode/files/usb-gadget3
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