From d4ffa79bb23c122f2d7d95288dd2d37ef49d495f Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Wed, 23 Aug 2023 23:15:49 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 4e7bbc7..266244c 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -2985,6 +2985,7 @@ if [ -z "$interfaceSelect" ]; then # Some cloud providers using the second or further order back of interface adapter like "eth1" to config public networking usually and we don't know what's role of "eth0". [[ "$interfacesNum" -ge "2" ]] && { if [[ "$IPStackType" == "IPv6Stack" ]]; then +# Approximately equal "=~" to "eth..." is for the redirected situation, "device order" is on the contrary for an un-redirected example. [[ "$interface6" =~ "eth" && `echo "$interface6" | grep -o '[0-9]'` != "0" ]] || [[ "$interface6DeviceOrder" != "0" ]] && { interfaceSelect="$interface6" }