mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
No need for case here
This commit is contained in:
parent
18e5247216
commit
f15a2b85cd
26
restore.sh
26
restore.sh
@ -3812,21 +3812,17 @@ restore_latest() {
|
|||||||
device_enter_mode Recovery
|
device_enter_mode Recovery
|
||||||
ipsw_extract
|
ipsw_extract
|
||||||
fi
|
fi
|
||||||
if [[ $device_type == "iPhone1,2" ]]; then
|
if [[ $device_type == "iPhone1,2" && $device_target_vers == "4"* ]]; then
|
||||||
case $device_target_vers in
|
if [[ $1 == "custom" ]]; then
|
||||||
4.2.1 | 4.1 )
|
log "Sending s5l8900xall..."
|
||||||
if [[ $1 == "custom" ]]; then
|
$irecovery -f "$ipsw_custom/Firmware/dfu/WTF.s5l8900xall.RELEASE.dfu"
|
||||||
log "Sending s5l8900xall..."
|
device_find_mode DFUreal
|
||||||
$irecovery -f "$ipsw_custom/Firmware/dfu/WTF.s5l8900xall.RELEASE.dfu"
|
log "Sending iBSS..."
|
||||||
device_find_mode DFUreal
|
$irecovery -f "$ipsw_custom/Firmware/dfu/iBSS.${device_model}ap.RELEASE.dfu"
|
||||||
log "Sending iBSS..."
|
device_find_mode Recovery
|
||||||
$irecovery -f "$ipsw_custom/Firmware/dfu/iBSS.${device_model}ap.RELEASE.dfu"
|
else
|
||||||
device_find_mode Recovery
|
ExtraArgs="-e"
|
||||||
else
|
fi
|
||||||
ExtraArgs="-e"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
if [[ $debug_mode == 1 ]]; then
|
if [[ $debug_mode == 1 ]]; then
|
||||||
ExtraArgs+="d"
|
ExtraArgs+="d"
|
||||||
|
Loading…
Reference in New Issue
Block a user