An update

This commit is contained in:
LukeZGD 2023-11-18 18:55:46 +08:00
parent 4802324d81
commit 546b394048
21 changed files with 11 additions and 6 deletions

View File

@ -1588,7 +1588,7 @@ ipsw_preference_set() {
esac esac
elif [[ $device_proc == 4 || $device_type == "iPad2"* ]]; then elif [[ $device_proc == 4 || $device_type == "iPad2"* ]]; then
case $device_type in case $device_type in
iPhone3* | iPad1,1 | iPod3,1 ) iPhone3* | iPad1,1 | iPod[34],1 )
if [[ $device_target_vers != "4.2.1" ]]; then if [[ $device_target_vers != "4.2.1" ]]; then
ipsw_canjailbreak=1 ipsw_canjailbreak=1
fi fi
@ -1647,6 +1647,8 @@ ipsw_preference_set() {
$device_target_powder == 1 || $device_target_tethered == 1 ]] || $device_target_powder == 1 || $device_target_tethered == 1 ]] ||
[[ $device_type == "iPad2"* && $device_target_vers == "4.3"* ]] || [[ $device_type == "iPad2"* && $device_target_vers == "4.3"* ]] ||
[[ $device_type == "iPad1,1" && $device_target_vers != "5"* ]] || [[ $device_type == "iPad1,1" && $device_target_vers != "5"* ]] ||
[[ $device_type == "iPod3,1" && $device_target_vers != "5"* ]] ||
[[ $device_type == "iPod4,1" && $device_target_vers == "4"* ]] ||
[[ $device_type == "iPhone3,1" && $device_target_vers == "4"* ]]; then [[ $device_type == "iPhone3,1" && $device_target_vers == "4"* ]]; then
input "Memory Option for creating custom IPSW" input "Memory Option for creating custom IPSW"
print "* When this option is enabled, system RAM will be used for the IPSW creation process." print "* When this option is enabled, system RAM will be used for the IPSW creation process."
@ -2314,11 +2316,14 @@ ipsw_prepare_32bit() {
local daibutsu local daibutsu
local JBFiles=() local JBFiles=()
if [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then if [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then
if [[ $device_type == "iPad"* || $device_type == "iPhone3"* ]]; then case $device_type in
ipsw_prepare_jailbreak iPad* | iPhone3* | iPod[34],1 ) ipsw_prepare_jailbreak;;
elif [[ $ipsw_jailbreak == 1 ]]; then * )
ipsw_prepare_custom if [[ $ipsw_jailbreak == 1 ]]; then
fi ipsw_prepare_custom
fi
;;
esac
return return
elif [[ -e "$ipsw_custom.ipsw" ]]; then elif [[ -e "$ipsw_custom.ipsw" ]]; then
log "Found existing Custom IPSW. Skipping IPSW creation." log "Found existing Custom IPSW. Skipping IPSW creation."