This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# shamelessly stolen from https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/ | |
# main difference is that I use ip to set the device and don't use dnsmasq. | |
# Instead I setup 'Raspberry PI4 USB Device' within iPad (or whatever you use) manual to | |
# 10.55.0.2 255.255.255.248 | |
# so that I don't have to deal with dnsmasq at all. | |
# I also use modprobe in the initialization script so that I don't load the modules when I don't execute usb-network.sh | |
echo 'dtoverlay=dwc2' >> /boot/config.txt |