2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

mini refine for genesis script doxcat to have it run into bash if no NIC with IP facing xcat MN found

This commit is contained in:
ertaozh
2016-04-13 03:42:54 -04:00
parent 5338644b00
commit 04dd30211f

View File

@ -188,6 +188,7 @@ else
done
echo -n "Acquiring network addresses.."
tries=0
while [ -z "$bootnic" ]; do
for tmp1 in $ALLUP_NICS; do
if ip addr show dev $tmp1|grep -v 'scope link'|grep -v 'dynamic'|grep -v inet6|grep inet > /dev/null; then
@ -199,6 +200,10 @@ else
fi
done
sleep 2
tries=$(($tries+1))
if [ $tries -ge 10 ]; then
break
fi
done
if [ -z "$bootnic" ]; then
/bin/bash