renenable mirror

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/10/merge
Robert Nelson 13 years ago
parent ddbb7debd3
commit e45e2ec261

@ -204,26 +204,33 @@ function dl_bootloader {
echo ""
echo "Downloading Device's Bootloader"
echo "-----------------------------"
unset disable_mirror
mkdir -p ${TEMPDIR}/dl/${DISTARCH}
mkdir -p "${DIR}/dl/${DISTARCH}"
unset RCNEEDOWN
# echo "attempting to use rcn-ee.net for dl files [10 second time out]..."
# wget -T 10 -t 1 --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
if [ "${disable_mirror}" ] ; then
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
else
echo "attempting to use rcn-ee.net for dl files [10 second time out]..."
wget -T 10 -t 1 --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
fi
if [ ! -f ${TEMPDIR}/dl/bootloader ] ; then
if [ "${disable_mirror}" ] ; then
echo "error: can't connect to rcn-ee.net, retry in a few minutes (backup mirror down)"
exit
# rcn-ee_down_use_mirror
# wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
else
rcn-ee_down_use_mirror
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/tools/latest/bootloader
fi
fi
# if [ "${RCNEEDOWN}" ] ; then
# sed -i -e "s/rcn-ee.net/rcn-ee.homeip.net:81/g" ${TEMPDIR}/dl/bootloader
# sed -i -e 's:81/deb/:81/dl/mirrors/deb/:g' ${TEMPDIR}/dl/bootloader
# fi
if [ "${RCNEEDOWN}" ] ; then
sed -i -e "s/rcn-ee.net/rcn-ee.homeip.net:81/g" ${TEMPDIR}/dl/bootloader
sed -i -e 's:81/deb/:81/dl/mirrors/deb/:g' ${TEMPDIR}/dl/bootloader
fi
if [ "${USE_BETA_BOOTLOADER}" ] ; then
ABI="ABX2"

Loading…
Cancel
Save