From 0aba782eab14424db0853380d5c432b9a3e35ed6 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Mon, 18 Apr 2022 10:41:52 +0800 Subject: [PATCH] Name custom IPSW depending on jailbreak tool CustomD for daibutsu, CustomE for EtasonJB --- resources/downgrade.sh | 2 +- resources/ipsw.sh | 3 +++ restore.sh | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/downgrade.sh b/resources/downgrade.sh index 8f73fde..79fe023 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -82,7 +82,7 @@ Downgrade() { if [[ $OSVer != "Other" ]]; then IPSW="${IPSWType}_${OSVer}_${BuildVer}_Restore" - IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom" + [[ -z $IPSWCustom ]] && IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom" if [[ $Jailbreak == 1 ]]; then [[ -e "$IPSWCustom.ipsw" ]] && Verify= diff --git a/resources/ipsw.sh b/resources/ipsw.sh index b1c5a16..c64b108 100755 --- a/resources/ipsw.sh +++ b/resources/ipsw.sh @@ -2,6 +2,7 @@ JailbreakSet() { Jailbreak=1 + IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom" if [[ $ProductType == "iPhone4,1" || $ProductType == "iPhone5,2" ]] && [[ $OSVer == "8.4.1" ]]; then Input "Jailbreak Tool Option" Echo "* This option is set to daibutsu by default (1)." @@ -21,8 +22,10 @@ JailbreakSet() { if [[ $JBDaibutsu == 1 ]]; then JBName="daibutsu" + IPSWCustom="${IPSWCustom}D" elif [[ $OSVer == "8.4.1" ]]; then JBName="EtasonJB" + IPSWCustom="${IPSWCustom}E" elif [[ $OSVer == "6.1.3" ]]; then JBName="p0sixspwn" fi diff --git a/restore.sh b/restore.sh index 0c2dcf3..de272ed 100755 --- a/restore.sh +++ b/restore.sh @@ -132,7 +132,6 @@ Main() { if [[ $Mode == "IPSW32" ]]; then IPSW="${IPSWType}_${OSVer}_${BuildVer}_Restore" - IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom" Verify=1 echo JailbreakSet