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