Skip to content

Commit

Permalink
Temporary alternative download
Browse files Browse the repository at this point in the history
  • Loading branch information
danielewood authored Apr 6, 2021
1 parent a14842b commit 0140710
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions autoflash-7455.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
# wget https://raw.githubusercontent.com/danielewood/sierra-wireless-modems/master/autoflash-7455.sh && sudo bash autoflash-7455.sh

#.SYNOPSIS
# - Only for use on Ubuntu 18.04 (or later) LiveUSB
# - Only for use on Ubuntu 20.04 (or later) LiveUSB
# - Changes all models of EM7455/MC7455 Modems to the Generic Sierra Wireless VID/PID
# - Flashes the Current Generic Firmware

#.DESCRIPTION
# - Only for use on Ubuntu 18.04 (or later) LiveUSB
# - Only for use on Ubuntu 20.04 (or later) LiveUSB
# - All Needed Packages will Auto-Install
# - Sets MBIM Mode with AT Commands Access
# - Changes all models of EM74XX/MC74XX Modems to the Generic Sierra Wireless VID/PID
Expand All @@ -29,7 +29,7 @@
# https://github.com/danielewood/sierra-wireless-modems

#.VERSION
# Version: 20201120
# Version: 20210405

##################
### Pre-Checks ###
Expand Down Expand Up @@ -304,11 +304,13 @@ sleep 1

function download_modem_firmware() {
# Find latest 7455 firmware and download it
# Temporary hosting until Sierra recovers from Cryptolocker
# Reference: https://github.com/danielewood/sierra-wireless-modems/discussions/74

if [[ -z $SWI9X30C_ZIP ]]; then
SWI9X30C_ZIP=$(curl https://source.sierrawireless.com/resources/airprime/minicard/74xx/airprime-em_mc74xx-approved-fw-packages/ 2> /dev/null | grep PTCRB -B1 | sed 's/,-d-,/./g' | grep -iEo '7455/swi9x30c[_0-9.]+_generic_[_0-9.]+' | cut -c 6- | tail -n1)
SWI9X30C_ZIP="${SWI9X30C_ZIP^^}"'zip'
SWI9X30C_ZIP='SWI9X30C_02.33.03.00_GENERIC_002.072_000.zip'
fi
SWI9X30C_URL='https://source.sierrawireless.com/~/media/support_downloads/airprime/74xx/fw/7455/'"$SWI9X30C_ZIP"
SWI9X30C_URL='https://download.ttl.one/swi/7455/'"$SWI9X30C_ZIP"

SWI9X30C_LENGTH=$(curl -sI "$SWI9X30C_URL" | grep -i Content-Length | grep -Eo '[0-9]+')

Expand Down Expand Up @@ -550,4 +552,4 @@ AT_PRIID_REV="$(echo "$AT_PRIID_STRING" | grep -Eo '[0-9]{3}\.[0-9]{3}')"

script_cleanup

# Done
# Done

0 comments on commit 0140710

Please sign in to comment.