#!/bin/sh  
source /etc/config/open2x.conf     

case "$1" in
  start)
        echo "Starting USB networking..."
        modprobe g_ether
        ifconfig usb0 up $USB_NET_IP
        ;;
  stop)
        echo -n "Stopping USB networking..."
        ifconfig usb0 down
        rmmod g_ether
        ;;
  restart|reload)
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac
