From d1f0b7bb08e6be1f6c895153e736ea3882cf4446 Mon Sep 17 00:00:00 2001 From: j0sel Date: Wed, 25 Dec 2024 12:53:48 +0100 Subject: [PATCH] feat: dynamic usbiface --- scripts/linux_connection_share.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/linux_connection_share.sh b/scripts/linux_connection_share.sh index b8f187da..19876486 100755 --- a/scripts/linux_connection_share.sh +++ b/scripts/linux_connection_share.sh @@ -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