From 6ce4316494a28147bd0427f36ee761ad8c5507cf Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:39:21 +0800 Subject: [PATCH] Fix iBSS not getting patched on S5L8900 also, do not ask for hacktivate option on non-iphones --- restore.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/restore.sh b/restore.sh index 1197b3d..d7770d7 100755 --- a/restore.sh +++ b/restore.sh @@ -2085,6 +2085,9 @@ ipsw_prepare_keys() { case $comp in "iBSS" | "iBEC" ) + if [[ -z $name ]]; then + name="$getcomp.${device_model}ap.RELEASE.dfu" + fi echo -e "$compFileFirmware/dfu/$nameIV$ivKey$key" >> $NewPlist if [[ -s $FirmwareBundle/$comp.${device_model}ap.RELEASE.patch ]]; then echo -e "Patch$comp.${device_model}ap.RELEASE.patch" >> $NewPlist @@ -4613,11 +4616,12 @@ menu_ipsw() { ;; 6* | 5* | 4* | 3* ) device_target_vers="$1" - if [[ $device_type == "iPhone1"* || $device_type == "iPhone2,1" ]]; then - device_canhacktivate=1 - fi + device_canhacktivate=1 ;; esac + if [[ $device_type != "iPhone"* ]]; then + device_canhacktivate= + fi case $1 in "6.1.3" ) device_target_build="10B329";; "6.1.2" ) device_target_build="10B146";;