From b6d450a323338b6d65ab96aea3e7321a2b158c8a Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Sat, 16 Apr 2022 10:02:19 +0800 Subject: [PATCH] Add Jailbreak Tool Option - selection between daibutsu and EtasonJB - for iPhone4,1 and iPhone5,2 only --- resources/ipsw.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/resources/ipsw.sh b/resources/ipsw.sh index 60fdc79..b1c5a16 100755 --- a/resources/ipsw.sh +++ b/resources/ipsw.sh @@ -2,11 +2,21 @@ JailbreakSet() { Jailbreak=1 - if [[ $ProductType == "iPhone4,1" || $ProductType == "iPhone5,2" || - $ProductType == "iPad2,4" || $ProductType == "iPad2,5" || - $ProductType == "iPad2,6" || $ProductType == "iPad2,7" || $ProductType == "iPod5,1" ]] || - [[ $ProductType == "iPad3"* && $DeviceProc == 5 ]]; then - [[ $OSVer == "8.4.1" ]] && JBDaibutsu=1 + 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)." + Selection=("daibutsu" "EtasonJB") + Input "Select your option:" + select opt in "${Selection[@]}"; do + case $opt in + "EtasonJB" ) break;; + * ) JBDaibutsu=1; break;; + esac + done + elif [[ $ProductType == "iPad2,4" || $ProductType == "iPad2,5" || $ProductType == "iPad2,6" || + $ProductType == "iPad2,7" || $ProductType == "iPod5,1" ]] || + [[ $ProductType == "iPad3"* && $DeviceProc == 5 ]]; then + [[ $OSVer == "8.4.1" ]] && JBDaibutsu=1 fi if [[ $JBDaibutsu == 1 ]]; then