From c87ea56a9e59dd4b3ddf67d900f4e14c1168bcd0 Mon Sep 17 00:00:00 2001 From: Simon 'Morphis' Busch Date: Wed, 20 Jan 2010 18:14:42 +0100 Subject: preboot: new recipe; a dual boot solution for the palm pre (WIP) --- recipes/preboot/files/etc/init.d/usbnet | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 recipes/preboot/files/etc/init.d/usbnet (limited to 'recipes/preboot/files/etc/init.d') diff --git a/recipes/preboot/files/etc/init.d/usbnet b/recipes/preboot/files/etc/init.d/usbnet new file mode 100644 index 0000000000..e6c7f4e412 --- /dev/null +++ b/recipes/preboot/files/etc/init.d/usbnet @@ -0,0 +1,9 @@ +#!/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 + -- cgit v1.2.3