Update downr1n.sh
This commit is contained in:
parent
ad25613b11
commit
d890c867da
1 changed files with 10 additions and 7 deletions
17
downr1n.sh
17
downr1n.sh
|
|
@ -558,13 +558,6 @@ fi
|
|||
|
||||
ipswurl=$(curl -sL "https://api.ipsw.me/v4/device/$deviceid?type=ipsw" | "$dir"/jq '.firmwares | .[] | select(.version=="'$version'")' | "$dir"/jq -s '.[0] | .url' --raw-output)
|
||||
|
||||
if [ ! -e ipsw/*.ipsw ]; then
|
||||
echo "[*] Downloading ipsw, it may take few minutes."
|
||||
aria2c -x16 -s16 -j16 "$ipswurl"
|
||||
mv *.ipsw ipsw
|
||||
fi
|
||||
|
||||
ipsw=$(ls ipsw/*.ipsw) # put your ipsw
|
||||
|
||||
# Have the user put the device into DFU
|
||||
if [ "$(get_device_mode)" != "dfu" ]; then
|
||||
|
|
@ -583,6 +576,16 @@ fi
|
|||
# =========
|
||||
# extract ipsw
|
||||
# =========
|
||||
|
||||
if [ ! -e ipsw/*.ipsw ]; then
|
||||
echo "[*] Downloading ipsw, it may take few minutes."
|
||||
aria2c -x16 -s16 -j16 "$ipswurl"
|
||||
mv *.ipsw ipsw
|
||||
fi
|
||||
|
||||
ipsw=$(ls ipsw/*.ipsw) # put your ipsw
|
||||
|
||||
|
||||
cd ipsw/
|
||||
ipsw_files=(*.ipsw)
|
||||
if [[ ${#ipsw_files[@]} -gt 1 ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue