From 6e8279ecd47d1ceab37d14844bc8dbd2daa99de9 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 3 Dec 2019 01:20:34 -0400 Subject: [PATCH] Wait just 2 secs before switch to a mirror and be quite --- usr/local/share/bastille/bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/bootstrap.sh b/usr/local/share/bastille/bootstrap.sh index 04801028..5f91d1a3 100644 --- a/usr/local/share/bastille/bootstrap.sh +++ b/usr/local/share/bastille/bootstrap.sh @@ -441,7 +441,7 @@ case "${1}" in NAME_VERIFY=$(echo "${RELEASE}" | grep -iwE '^([1-9]{2,2})\.[0-9](-RELEASE|-RC[1-2])$' | tr '[:lower:]' '[:upper:]') if [ -n "${NAME_VERIFY}" ]; then RELEASE="${NAME_VERIFY}" - if [ "$(ping -c1 ftp.freebsd.org 2>/dev/null)" ]; then + if ping -c1 -t2 ftp.freebsd.org >/dev/null 2>&1; then ## main http UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/${RELEASE}" else @@ -473,7 +473,7 @@ NAME_RELEASE=$(echo ${NAME_VERIFY} | sed 's/-build-[0-9]\{1,2\}//g') NAME_BUILD=$(echo ${NAME_VERIFY} | sed 's/[0-9]\{1,2\}-stable-//g') if [ -n "${NAME_VERIFY}" ]; then RELEASE="${NAME_VERIFY}" - if [ "$(ping -c1 installer.hardenedbsd.org 2>/dev/null)" ]; then + if ping -c1 -t2 installer.hardenedbsd.org >/dev/null 2>&1; then ## main site UPSTREAM_URL="http://installer.hardenedbsd.org/pub/hardenedbsd/${NAME_RELEASE}/${HW_MACHINE}/${HW_MACHINE_ARCH}/${NAME_BUILD}" else