2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 03:00:26 +00:00

replace _port, use nic_name

This commit is contained in:
bybai
2019-05-06 06:11:12 -04:00
parent df0cbdec91
commit 131247e356

View File

@@ -1878,7 +1878,7 @@ function wait_nic_connect_intime {
fi
i=0
while [ $i -lt "$time_out" ]; do
con_name=$(nmcli dev show $_port|grep GENERAL.CONNECTION|awk -F: '{print $2}'|sed 's/^[ \t]*//g')
con_name=$(nmcli dev show $nic_name|grep GENERAL.CONNECTION|awk -F: '{print $2}'|sed 's/^[ \t]*//g')
if [ ! -z "$con_name" -a "$con_name" != "--" ]; then
break
fi