aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/shr/initscripts-shr/palmpre/usb-gadget.sh')
-rw-r--r--recipes/shr/initscripts-shr/palmpre/usb-gadget.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh b/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
new file mode 100644
index 0000000000..d7554954d6
--- /dev/null
+++ b/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# usb gadget configuration:
+# there already different configurations on the palm pre defined,
+# we choose nr 5 cause it provides the usbnet, novacom
+# and storage gadget
+if [ -e /sys/class/usb_gadget/config_num ]; then
+ echo 5 > /sys/class/usb_gadget/config_num
+fi
+