mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1845 311d38ba-8fff-0310-9ca6-ca027cbcb966
24 lines
369 B
Bash
Executable File
24 lines
369 B
Bash
Executable File
#! /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
|