summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {