Instantly share code, notes, and snippets.

Wojtek Kaniewski wojtekka

View GitHub Profile
@wojtekka
wojtekka / gist:6c532afa9437c9b6696e789caa6ecf4a
Last active Sep 19, 2018
Raspberry Pi Zero USB network with DHCP server
View gist:6c532afa9437c9b6696e789caa6ecf4a
#!/bin/sh
echo "dwc2" >> /etc/modules
echo "g_ether" >> /etc/modules
echo "dtoverlay=dwc2" >> /boot/config.txt
cat > /etc/systemd/network/usb0.network << EOF
[Match]
Name=usb0