Switch from wget to curl for downloads

May solve issues like https://github.com/Hexxeh/rpi-update/issues/65
This commit is contained in:
popcornmix
2014-03-21 10:47:34 +00:00
parent 4ce7af12ea
commit dd495b8dd7

View File

@@ -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}"
}