From 0df5acf4fbb9a760c4d4cc526a65715ac4440816 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Sun, 22 Mar 2020 08:37:31 +0800 Subject: [PATCH] Update restore.sh Always download firmware keys --- restore.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/restore.sh b/restore.sh index 7ee2227..e4a704e 100755 --- a/restore.sh +++ b/restore.sh @@ -309,15 +309,14 @@ function FindDFU { } function Downgrade { - # These firmware keys are essential for iPad2,4, 2,5, 2,6, 2,7, and iPod5,1 + # These firmware keys are essential for some iPads and iPod5,1 # 8.4.1 KBAG keys for those devices are missing in firmware-keys.ipsw.me - if [ ! -e resources/firmware ]; then - echo "[Log] Firmware keys missing, downloading firmware keys..." - curl -L https://github.com/LukeZGD/32bit-OTA-Downgrader/archive/firmware.zip -o tmp/firmware.zip - unzip -q tmp/firmware.zip -d tmp - mkdir resources/firmware - mv tmp/32bit-OTA-Downgrader-firmware/firmware/* resources/firmware - fi + rm -rf resources/firmware + echo "Downloading firmware keys..." + curl -L https://github.com/LukeZGD/32bit-OTA-Downgrader/archive/firmware.zip -o tmp/firmware.zip + unzip -q tmp/firmware.zip -d tmp + mkdir resources/firmware + mv tmp/32bit-OTA-Downgrader-firmware/firmware/* resources/firmware if [ ! $NotOTA ]; then SaveOTABlobs