From 49420773dd8dbc9983a9251508cfd40125056ccd Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 23 Aug 2024 00:34:00 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E5=BF=BD=E7=95=A5=E4=B8=B4=E6=97=B6=20?= =?UTF-8?q?IPv6=20=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reinstall.sh b/reinstall.sh index a54ac4d..fdee127 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -1928,7 +1928,7 @@ collect_netconf() { eval ipv${v}_ethx="$ethx" # can_use_cloud_kernel 要用 eval ipv${v}_mac="$(ip link show dev $ethx | grep link/ether | head -1 | awk '{print $2}')" eval ipv${v}_gateway="$(ip -$v route show default | awk '$5=="'$ethx'"' | head -1 | awk '{print $3}')" - eval ipv${v}_addr="$(ip -$v -o addr show scope global dev $ethx | head -1 | awk '{print $4}')" + eval ipv${v}_addr="$(ip -$v -o addr show scope global dev $ethx | grep -v temporary | head -1 | awk '{print $4}')" fi fi done