From dd495b8dd7f36dc411f2ed2bbdc21e4062b01a62 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 21 Mar 2014 10:47:34 +0000 Subject: [PATCH] Switch from wget to curl for downloads May solve issues like https://github.com/Hexxeh/rpi-update/issues/65 --- rpi-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpi-update b/rpi-update index 0c75dd7..fb0a773 100755 --- a/rpi-update +++ b/rpi-update @@ -33,7 +33,7 @@ function update_self() { echo " *** Performing self-update" _tempFileName="$0.tmp" - if ! wget --output-document="${_tempFileName}" "${UPDATE_URI}"; then + if ! curl -L --output "${_tempFileName}" "${UPDATE_URI}"; then echo " !!! Failed to download update for rpi-update!" echo " !!! Make sure you have ca-certificates installed and that the time is set correctly" exit 1 @@ -182,7 +182,7 @@ function download_rev { mkdir -p "${FW_REPOLOCAL}" FW_TARBALL="${FW_REPOLOCAL}/${FW_REV}.tar.gz" echo " *** Decompressing downloaded firmware archive" - wget "${REPO_URI}/tarball/${FW_REV}" -O "${FW_TARBALL}" + curl -L --output "${FW_TARBALL}" "${REPO_URI}/tarball/${FW_REV}" tar xzf "${FW_TARBALL}" -C "${FW_REPOLOCAL}" --strip-components=1 rm "${FW_TARBALL}" }