summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2022-04-01 04:00:59 +0300
committerWilliam A. Kennington III <wak@google.com>2022-04-01 19:17:04 +0300
commitd1e9992f30e14e2736e91c95da3ad84293cbb8e3 (patch)
treee2bda79e52fcb72afe6da9625f545a9115c99516 /meta-google
parent986d3a6545e501d5f92c529702bad0fa5dc46d1b (diff)
downloadopenbmc-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-xmeta-google/recipes-google/networking/google-usb-network/usb_network.sh2
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() {