summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/update/blobs/download2
-rwxr-xr-xscript/update/blobs/mrc2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/update/blobs/download b/script/update/blobs/download
index 00c7b189..2903c504 100755
--- a/script/update/blobs/download
+++ b/script/update/blobs/download
@@ -440,7 +440,7 @@ fetch_update()
[ -z "${x}" ] && continue
rm -f "${dl_path}" || \
err "fetch_update ${fw_type}: !rm -f ${dl_path}"
- wget -U "${agent}" "${x}" -O "${dl_path}" || continue
+ wget --tries 3 -U "${agent}" "${x}" -O "${dl_path}" || continue
vendor_checksum "${dlsum}" && dl_fail="n"
done
if [ "${dl_fail}" = "y" ]; then
diff --git a/script/update/blobs/mrc b/script/update/blobs/mrc
index 420fa42f..59ed12f1 100755
--- a/script/update/blobs/mrc
+++ b/script/update/blobs/mrc
@@ -111,7 +111,7 @@ download_image()
_sha1sum=${3}
printf "Downloading recovery image\n"
- curl "$url" > "$_file.zip" || err "download_image: curl failed"
+ curl --retry 3 "$url" > "$_file.zip" || err "download_image: curl failed"
printf "Verifying recovery image checksum\n"
if [ "$(sha1sum "${_file}.zip" | awk '{print $1}')" = "${_sha1sum}" ]
then