From 8783eda5b83e322fbf044998634d6acbda0b320c Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Tue, 8 Sep 2020 16:17:53 +0800 Subject: [PATCH] SaveExternal first before device detection - Also remove selecting 8.4.1 for iPhone 5C --- restore.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/restore.sh b/restore.sh index 1eeee52..b46cdad 100755 --- a/restore.sh +++ b/restore.sh @@ -70,6 +70,9 @@ function Main { [[ ! $(ping -c1 google.com 2>/dev/null) ]] && Error "Please check your Internet connection before proceeding." [[ $(uname -m) != 'x86_64' ]] && Error "Only x86_64 distributions are supported. Use a 64-bit distro and try again" + SaveExternal iOS-OTA-Downgrader-Keys + SaveExternal ipwndfu + DFUDevice=$($lsusb | grep -ci '1227') RecoveryDevice=$($lsusb | grep -ci '1281') if [[ $1 == Install ]] || [ ! $(which $bspatch) ] || [ ! $(which $ideviceinfo) ] || @@ -90,8 +93,6 @@ function Main { UniqueDeviceID=$(echo "$ideviceinfo2" | grep 'UniqueDeviceID' | cut -c 17-) fi [ ! $ProductType ] && ProductType=0 - SaveExternal iOS-OTA-Downgrader-Keys - SaveExternal ipwndfu BasebandDetect Clean mkdir tmp @@ -159,7 +160,9 @@ function SelectVersion { elif [[ $Mode == 'kDFU' ]]; then Action fi - Selection=("iOS 8.4.1") + if [ $ProductType != iPhone5,3 ] && [ $ProductType != iPhone5,4 ]; then + Selection=("iOS 8.4.1") + fi if [ $ProductType == iPad2,1 ] || [ $ProductType == iPad2,2 ] || [ $ProductType == iPad2,3 ] || [ $ProductType == iPhone4,1 ]; then Selection+=("iOS 6.1.3")