feat: dynamic usbiface

This commit is contained in:
j0sel
2024-12-25 12:53:48 +01:00
parent 7e26085016
commit d1f0b7bb08

View File

@ -2,7 +2,7 @@
set -e
# name of the ethernet gadget interface on the host
USB_IFACE=${1:-enx002282ffff20}
USB_IFACE=${1:-$(ifconfig | grep enx | awk -F\: '{print $1}')}
USB_IFACE_IP=10.0.0.1
USB_IFACE_NET=10.0.0.0/24
# host interface to use for upstream connection