From 3d6dfb0999db3aa87355f4d47fd3f37344a419f3 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Tue, 3 Mar 2020 09:09:07 +0800 Subject: [PATCH] Download IPSW if needed --- README.md | 8 ++++---- restore.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5b57548..db84bfb 100755 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ - **Please see "Other notes" below to serve as answers for FAQs** ## Prerequisites: -- **A supported 32-bit device jailbroken on any iOS version** (5 to 10) -- **iOS [8.4.1](https://ipsw.me/8.4.1) or [6.1.3](https://ipsw.me/6.1.3) IPSW for your device** -- A **Linux install/live USB** (see distros tested on below) (a live USB can be easily created with tools like [**balenaEtcher**](https://www.balena.io/etcher/) or [**Rufus**](https://rufus.ie/)) +- A supported 32-bit device **jailbroken** on any iOS version +- **iOS [8.4.1](https://ipsw.me/8.4.1) or [6.1.3](https://ipsw.me/6.1.3) IPSW** for your device (the script can also download it for you) +- A **Linux install/live USB** (see distros tested on below) (a live USB can be easily created with tools like [balenaEtcher](https://www.balena.io/etcher/) or [Rufus](https://rufus.ie/)) - **macOS** (tested on 10.13 and 10.14 only) should also work, but I won't be able to provide support when the script breaks -- iOS 7/8 Pangu users: install the [latest Pangu 7.1.x Untether (deb)](http://apt.saurik.com/debs/io.pangu.axe7_0.3_iphoneos-arm.deb) or [latest Pangu 8.0-8.1.x Untether (deb)](http://apt.saurik.com/debs/io.pangu.xuanyuansword8_0.5_iphoneos-arm.deb) +- iOS 7/8 Pangu users: Install the [latest Pangu 7.1.x Untether (deb)](http://apt.saurik.com/debs/io.pangu.axe7_0.3_iphoneos-arm.deb) or [latest Pangu 8.0-8.1.x Untether (deb)](http://apt.saurik.com/debs/io.pangu.xuanyuansword8_0.5_iphoneos-arm.deb) - iOS 9 and below users: Install [OpenSSH](https://cydia.saurik.com/openssh.html); The computer and device must be on the same network for SSH to work - iOS 10 users: Install [MTerminal](http://cydia.saurik.com/package/com.officialscheduler.mterminal/) diff --git a/restore.sh b/restore.sh index 627dd8d..d72d5b6 100755 --- a/restore.sh +++ b/restore.sh @@ -128,8 +128,8 @@ function Downgrade { IPSW="${ProductType}_${DowngradeVersion}_${DowngradeBuildVer}_Restore" if [ ! -e ${IPSW}.ipsw ]; then - echo "iOS $DowngradeVersion IPSW is missing! Please put the IPSW on the same directory of this script" - exit + echo "iOS $DowngradeVersion IPSW is missing, downloading IPSW..." + curl -L https://api.ipsw.me/v4/ipsw/download/$ProductType/$DowngradeBuildVer -o $IPSW.ipsw fi if [ ! $NotOTADowngrade ]; then