summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2022-05-03 03:06:28 +0300
committerWilliam A. Kennington III <wak@google.com>2022-05-04 19:54:43 +0300
commitcb3143ef9e4208485e2a6259db54fa7bd99060a0 (patch)
tree570638aed985da1f422772c227c7bbcc737cc1f9 /meta-google
parent882921cf6d576d3ae9f62bfa1a53a83002dc41b8 (diff)
downloadopenbmc-cb3143ef9e4208485e2a6259db54fa7bd99060a0.tar.xz
meta-google: google-usb-network: Rename early
Ideally our interface name is set prior to being created. However, we have to do this opportunisticly because it is only supported on linux 5.12 and newer. Change-Id: I5e660031a99b4120b3e75b25a7b58ca3a7373d57 Signed-off-by: William A. Kennington III <wak@google.com>
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