Skip to content

Instantly share code, notes, and snippets.

View Mammadbayli's full-sized avatar

Mammadbayli Mammadbayli

View GitHub Profile
#!/bin/bash
# Orange Pi Zero 2W USB Ethernet Gadget Setup
# Works with Armbian or Orange Pi OS
set -e
# --- CONFIGURABLE SECTION ---
USB_IP="192.168.7.1"
USB_NETMASK="255.255.255.0"
DHCP_RANGE_START="192.168.7.2"