|
|
@ -176,7 +176,6 @@ function detect_software {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function rcn-ee_down_use_mirror {
|
|
|
|
function rcn-ee_down_use_mirror {
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo "rcn-ee.net down, switching to slower backup mirror"
|
|
|
|
echo "rcn-ee.net down, switching to slower backup mirror"
|
|
|
|
echo "-----------------------------"
|
|
|
|
echo "-----------------------------"
|
|
|
|
MIRROR=${BACKUP_MIRROR}
|
|
|
|
MIRROR=${BACKUP_MIRROR}
|
|
|
@ -191,10 +190,13 @@ function dl_bootloader {
|
|
|
|
mkdir -p ${TEMPDIR}/dl/${DISTARCH}
|
|
|
|
mkdir -p ${TEMPDIR}/dl/${DISTARCH}
|
|
|
|
mkdir -p "${DIR}/dl/${DISTARCH}"
|
|
|
|
mkdir -p "${DIR}/dl/${DISTARCH}"
|
|
|
|
|
|
|
|
|
|
|
|
echo "Checking rcn-ee.net to see if server is up and responding to pings..."
|
|
|
|
echo "attempting to use rcn-ee.net for dl files [10 second time out]..."
|
|
|
|
ping -c 3 -w 10 www.rcn-ee.net | grep "ttl=" &> /dev/null || rcn-ee_down_use_mirror
|
|
|
|
wget -T 10 -t 1 --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
|
|
|
|
|
|
|
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
|
|
|
|
if [ ! -f ${TEMPDIR}/dl/bootloader ] ; then
|
|
|
|
|
|
|
|
rcn-ee_down_use_mirror
|
|
|
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$RCNEEDOWN" ];then
|
|
|
|
if [ "$RCNEEDOWN" ];then
|
|
|
|
sed -i -e "s/rcn-ee.net/rcn-ee.homeip.net:81/g" ${TEMPDIR}/dl/bootloader
|
|
|
|
sed -i -e "s/rcn-ee.net/rcn-ee.homeip.net:81/g" ${TEMPDIR}/dl/bootloader
|
|
|
|