summaryrefslogtreecommitdiff
path: root/recipes-core/usb-rndis/files/start-rndis.sh
blob: e226bbe0243b5db22b412497826396c75e6d8d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# configures the usb gadget to provide rnidis, 
case "$1" in
	start)
		/sbin/modprobe g_ether dev_addr=00:14:2d:ff:ff:ff host_addr=00:14:2d:ff:ff:fe
	;;
	
	stop)
		/sbin/modprobe -r g_ether
	;;
esac

exit 0