summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
Diffstat (limited to 'meta-google')
-rwxr-xr-xmeta-google/recipes-google/networking/google-usb-network/usb_network.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-google/recipes-google/networking/google-usb-network/usb_network.sh b/meta-google/recipes-google/networking/google-usb-network/usb_network.sh
index ec9c2cf559..8b7bf539c8 100755
--- a/meta-google/recipes-google/networking/google-usb-network/usb_network.sh
+++ b/meta-google/recipes-google/networking/google-usb-network/usb_network.sh
@@ -94,6 +94,9 @@ EOF
ln -s "${func_dir}" "${config_dir}" || return
+ # This only works on kernel 5.12+, we have to ignore failures for now
+ echo "$IFACE_NAME" >"${func_dir}"/ifname || true
+
echo "${BIND_DEVICE}" >${gadget_dir}/UDC || return
# Try to reconfigure a few times in case we race with systemd-networkd
local start=$SECONDS