From 5e34ef5f94ad69d90b0d83c19a8bc8b63102cf98 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Sat, 19 Jun 2021 15:31:20 +0800 Subject: [PATCH] Some changes --- resources/device.sh | 3 +-- resources/downgrade.sh | 3 +-- restore.sh | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/resources/device.sh b/resources/device.sh index 560c200..487f086 100755 --- a/resources/device.sh +++ b/resources/device.sh @@ -93,8 +93,7 @@ GetDeviceValues() { if [[ $ProductType == "iPad2"* || $ProductType == "iPad3,1" || $ProductType == "iPad3,2" || $ProductType == "iPad3,3" || $ProductType == "iPhone4,1" || $ProductType == "iPod5,1" ]]; then DeviceProc=5 - elif [[ $ProductType == "iPad3,4" || $ProductType == "iPad3,5" || - $ProductType == "iPad3,6" || $ProductType == "iPhone5"* ]]; then + elif [[ $ProductType == "iPhone5"* || $ProductType == "iPad3"* ]]; then DeviceProc=6 elif [[ $ProductType == "iPhone6"* || $ProductType == "iPad4"* ]]; then DeviceProc=7 diff --git a/resources/downgrade.sh b/resources/downgrade.sh index 0bfdacf..7818c1a 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -24,8 +24,7 @@ FRBaseband() { Log "Downloading baseband..." $partialzip $BasebandURL Firmware/$Baseband $Baseband $partialzip $BasebandURL BuildManifest.plist BuildManifest.plist - mkdir -p saved/$ProductType 2>/dev/null - mkdir -p saved/baseband 2>/dev/null + mkdir -p saved/$ProductType saved/baseband 2>/dev/null mv $Baseband saved/baseband mv BuildManifest.plist saved/$ProductType BuildManifest="saved/$ProductType/BuildManifest.plist" diff --git a/restore.sh b/restore.sh index 73ad5c2..a435885 100755 --- a/restore.sh +++ b/restore.sh @@ -89,8 +89,8 @@ Main() { Error "Only 64-bit (x86_64) distributions are supported." fi - if [[ $1 == "Install" || ! $bspatch || ! $git || ! $ideviceinfo ||! $irecoverychk || ! $python || - ! -d ./resources/libimobiledevice_$platform ]]; then + if [[ $1 == "Install" || ! $bspatch || ! $git || + ! $ideviceinfo || ! $irecoverychk || ! $python ]]; then Clean InstallDepends fi