diff options
author | William A. Kennington III <wak@google.com> | 2022-04-01 04:00:59 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2022-04-01 19:17:04 +0300 |
commit | d1e9992f30e14e2736e91c95da3ad84293cbb8e3 (patch) | |
tree | e2bda79e52fcb72afe6da9625f545a9115c99516 /meta-google | |
parent | 986d3a6545e501d5f92c529702bad0fa5dc46d1b (diff) | |
download | openbmc-d1e9992f30e14e2736e91c95da3ad84293cbb8e3.tar.xz |
meta-google: google-usb-network: Set ifname correctly
We want the interface name on the system to reflect the name given as an
argument to the script
Change-Id: I00b2d28096aa3e6ef1332ef325a72f3c0f5283e8
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google')
-rwxr-xr-x | meta-google/recipes-google/networking/google-usb-network/usb_network.sh | 2 |
1 files changed, 2 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 3c38fb4b0b..a135465f22 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 @@ -89,6 +89,8 @@ EOF ln -s "${func_dir}" "${config_dir}" echo "${BIND_DEVICE}" > ${gadget_dir}/UDC + ip link set dev "$(<"${func_dir}"/ifname)" down + ip link set dev "$(<"${func_dir}"/ifname)" name "${IFACE_NAME}" } gadget_stop() { |