forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-20 5a4414d1fd83d52b073fc27f6e12dc9fe3b32766
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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