From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- meta/recipes-bsp/usbinit/usbinit/usb-gether | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 meta/recipes-bsp/usbinit/usbinit/usb-gether (limited to 'meta/recipes-bsp/usbinit/usbinit/usb-gether') diff --git a/meta/recipes-bsp/usbinit/usbinit/usb-gether b/meta/recipes-bsp/usbinit/usbinit/usb-gether new file mode 100755 index 0000000000..e80a0bb30e --- /dev/null +++ b/meta/recipes-bsp/usbinit/usbinit/usb-gether @@ -0,0 +1,23 @@ +#! /bin/sh +# +# usb-ether Start up the gadget usb ethernet interface. +# + +case "$1" in + start|"") + test "$VERBOSE" != no && echo "Initializing g_ether gadget..." + modprobe g_ether + ifup usb0 + ;; + stop) + test "$VERBOSE" != no && echo "Disabling g_ether..." + ifdown usb0 + rmmod g_ether + ;; + *) + echo "Usage: usb-ether {start|stop}" >&2 + exit 1 + ;; +esac + +exit 0 -- cgit v1.2.3-54-g00ecf