Skip to content

Commit

Permalink
Update for new Sierra URL scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielewood authored Dec 6, 2021
1 parent 7d97c1c commit 50fe059
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoflash-7455.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,12 @@ sleep 1
function download_modem_firmware() {
# Find latest 7455 firmware and download it
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_URL=$(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 -iPo 'href="\K.+/swi9x30c[_0-9.]+_generic_[_0-9.]+' | tail -n1)
SWI9X30C_ZIP=${SWI9X30C_URL##*/}
SWI9X30C_ZIP="${SWI9X30C_ZIP^^}"'zip'
fi
SWI9X30C_URL='https://source.sierrawireless.com/~/media/support_downloads/airprime/74xx/fw/7455/'"$SWI9X30C_ZIP"

SWI9X30C_LENGTH=$(curl -sI "$SWI9X30C_URL" | grep -i Content-Length | grep -Eo '[0-9]+')
SWI9X30C_URL="https://source.sierrawireless.com${SWI9X30C_URL}zip"
SWI9X30C_LENGTH=$(curl -sI "$SWI9X30C_URL" | grep -iPo '^Content-Length[^0-9]+\K[0-9]+')

# If remote file size is less than 40MiB, something went wrong, exit.
if [[ $SWI9X30C_LENGTH -lt 40000000 ]]; then
Expand Down

1 comment on commit 50fe059

@jjhdtv
Copy link

@jjhdtv jjhdtv commented on 50fe059 May 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script worked perfectly on one of my em 7455, but getting "waiting for modem boothold mode... at the end of the flash. Also still show mismatched firmware. Seems to be stuck with verizon. Any suggestions?

Please sign in to comment.