mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 17:20:12 +01:00
Wait just 2 secs before switch to a mirror and be quite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user