rpi/static/unattended.sh
2025-09-23 16:12:34 +00:00

14 lines
227 B
Bash

#!/bin/sh
echo "dwc2" >> /etc/modules
echo "g_ether" >> /etc/modules
modprobe dwc2
modprobe g_ether
cat >> /etc/network/interfaces << EOF
auto usb0
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
EOF