Skip to content

Instantly share code, notes, and snippets.

@JulienRobitaille
JulienRobitaille / raspberry-pi-zero-w-OTG-mode.sh
Created June 7, 2018 00:53
Raspberry pi zero W configure OTG mode script
#!/bin/bash
#This work for a Raspberry pi zero W 2018-04-18-raspbian-stretch-lite.
#Execute this in the boot directory once you've flashed raspbian
#Used in this project https://github.com/ClubCedille/RocketCam
echo "dtoverlay=dwc2" >> config.txt
sed -i 's/rootwait/rootwait modules-load=dwc2,g_ether/' cmdline.txt
touch ssh