diff --git a/clone/utility/sats-install b/clone/utility/sats-install index 8345571..fe25597 100644 --- a/clone/utility/sats-install +++ b/clone/utility/sats-install @@ -30,10 +30,18 @@ fi; # (x) If no network -> exit # slog " * 4. Checking connectivity"; -[ -z "`ping xdrm.io -q -c 1 -i 1 2>&1 > /dev/null`" ] \ - && slog " > done" \ - || failexit; +max_try=5; +while [ -n "`ping xdrm.io -q -c 1 -i 1 2>&1 > /dev/null`" ]; do + slog " > waiting for network"; + + max_try=`expr $max_try - 1`; + [ $max_try -lt 0 ] && failexit; + + sleep 5; +done; + +slog " > done"; # [1] Installation #========================================================#