aboutsummaryrefslogtreecommitdiff
path: root/recipes-misc/de10-nano-usb-gadget/files/de10-nano-gadget-init.sh
blob: 4bfa204bd9bb7e69f896edefe6237ec1d01ea03f (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

modprobe g_multi file=/usr/share/de10-nano-usb-gadget/fat_image.img

sleep 5

rm /var/lib/misc/udhcpd.leases
/sbin/ifconfig usb0 hw ether 00:07:ed:01:02:03
/sbin/ifconfig usb0 192.168.7.1 netmask 255.255.255.0
/usr/sbin/udhcpd -fS -I 192.168.7.1 /etc/udhcpd.conf