Name custom IPSW depending on jailbreak tool

CustomD for daibutsu, CustomE for EtasonJB
This commit is contained in:
LukeZGD 2022-04-18 10:41:52 +08:00
parent b6d450a323
commit 0aba782eab
3 changed files with 4 additions and 2 deletions

View File

@ -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=

View File

@ -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

View File

@ -132,7 +132,6 @@ Main() {
if [[ $Mode == "IPSW32" ]]; then
IPSW="${IPSWType}_${OSVer}_${BuildVer}_Restore"
IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom"
Verify=1
echo
JailbreakSet