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