commit | d1e9992f30e14e2736e91c95da3ad84293cbb8e3 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Mar 31 18:00:59 2022 -0700 |
committer | William A. Kennington III <wak@google.com> | Fri Apr 01 16:17:04 2022 +0000 |
tree | e2bda79e52fcb72afe6da9625f545a9115c99516 | |
parent | 986d3a6545e501d5f92c529702bad0fa5dc46d1b [diff] |
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>
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 3c38fb4..a135465 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 @@ 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() {