refs #1161 adds attemps of pings in getNetworking loop
parent
d720a057fc
commit
83a015e571
|
@ -82,10 +82,14 @@ mountroot ()
|
|||
[ $? == 0 ] && sh || echo " "
|
||||
if [ -n "$oglive" ]
|
||||
then
|
||||
attempts=0
|
||||
while !(ping -c 1 $oglive &> /dev/null)
|
||||
do
|
||||
attempts=$((attempts+1))
|
||||
echo "Attempt $attempts: Waiting for network connection... attempting to ping $oglive"
|
||||
ogConfigureNetworking
|
||||
done
|
||||
echo "Connection established after $attempts attempts."
|
||||
fi
|
||||
log_success_msg "config networking"
|
||||
ogConfigureLoopback
|
||||
|
|
Loading…
Reference in New Issue