mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 15:51:50 +01:00
also add option to restore to 4.1 for touch 3
This commit is contained in:
parent
65885f21f7
commit
3166cf471a
23
restore.sh
23
restore.sh
@ -1179,8 +1179,8 @@ ipsw_preference_set() {
|
|||||||
7* | 6* | 5* ) ipsw_canjailbreak=1;;
|
7* | 6* | 5* ) ipsw_canjailbreak=1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ $device_target_vers == "$device_latest_vers" && $ipsw_canjailbreak != 1 ]] || (( device_proc >= 7 )) ||
|
if [[ $device_target_vers == "$device_latest_vers" && $ipsw_canjailbreak != 1 ]] ||
|
||||||
[[ $device_type == "iPhone2,1" && $device_target_vers == "4.1" ]]; then
|
(( device_proc >= 7 )) || [[ $device_target_vers == "4.1" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2189,14 +2189,16 @@ restore_prepare() {
|
|||||||
restore_futurerestore --use-pwndfu
|
restore_futurerestore --use-pwndfu
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ $device_type == "iPhone2,1" && $device_target_vers == "4.1" ]]; then
|
elif [[ $device_target_vers == "4.1" ]]; then
|
||||||
device_enter_mode DFU
|
device_enter_mode DFU
|
||||||
restore_latest
|
restore_latest
|
||||||
log "Ignore the baseband error and do not disconnect your device yet"
|
if [[ $device_type == "iPhone2,1" ]]; then
|
||||||
device_find_mode Recovery
|
log "Ignore the baseband error and do not disconnect your device yet"
|
||||||
log "Attempting to exit recovery mode"
|
device_find_mode Recovery
|
||||||
$irecovery -n
|
log "Attempting to exit recovery mode"
|
||||||
log "Done, your device should boot now"
|
$irecovery -n
|
||||||
|
log "Done, your device should boot now"
|
||||||
|
fi
|
||||||
if [[ $platform == "linux" ]]; then
|
if [[ $platform == "linux" ]]; then
|
||||||
print "* For device activation on Linux, go to Other Utilities -> Attempt Activation"
|
print "* For device activation on Linux, go to Other Utilities -> Attempt Activation"
|
||||||
fi
|
fi
|
||||||
@ -2262,7 +2264,7 @@ ipsw_prepare() {
|
|||||||
if [[ $device_target_other == 1 ]]; then
|
if [[ $device_target_other == 1 ]]; then
|
||||||
ipsw_prepare_32bit
|
ipsw_prepare_32bit
|
||||||
elif [[ $device_target_vers == "$device_latest_vers" ]] ||
|
elif [[ $device_target_vers == "$device_latest_vers" ]] ||
|
||||||
[[ $device_type == "iPhone2,1" && $device_target_vers == "4.1" ]]; then
|
[[ $device_target_vers == "4.1" ]]; then
|
||||||
if [[ $ipsw_jailbreak == 1 ]]; then
|
if [[ $ipsw_jailbreak == 1 ]]; then
|
||||||
ipsw_prepare_32bit
|
ipsw_prepare_32bit
|
||||||
fi
|
fi
|
||||||
@ -2673,7 +2675,7 @@ menu_restore() {
|
|||||||
menu_items+=("powdersn0w");;
|
menu_items+=("powdersn0w");;
|
||||||
iPhone4,1 | iPhone5,[12] | iPad2,4 | iPod5,1 )
|
iPhone4,1 | iPhone5,[12] | iPad2,4 | iPod5,1 )
|
||||||
menu_items+=("Other (powdersn0w 7.1.x blobs)");;
|
menu_items+=("Other (powdersn0w 7.1.x blobs)");;
|
||||||
iPhone2,1 )
|
iPhone2,1 | iPod3,1 )
|
||||||
menu_items+=("iOS 4.1");;
|
menu_items+=("iOS 4.1");;
|
||||||
esac
|
esac
|
||||||
if [[ $platform != "macos" && $1 != "ipsw" ]] && (( device_proc < 7 )); then
|
if [[ $platform != "macos" && $1 != "ipsw" ]] && (( device_proc < 7 )); then
|
||||||
@ -2954,6 +2956,7 @@ menu_ipsw_browse() {
|
|||||||
"iOS 10.3.3" ) versionc="10.3.3";;
|
"iOS 10.3.3" ) versionc="10.3.3";;
|
||||||
"iOS 8.4.1" ) versionc="8.4.1";;
|
"iOS 8.4.1" ) versionc="8.4.1";;
|
||||||
"iOS 6.1.3" ) versionc="6.1.3";;
|
"iOS 6.1.3" ) versionc="6.1.3";;
|
||||||
|
"iOS 4.1" ) versionc="4.1";;
|
||||||
"Latest iOS" ) versionc="$device_latest_vers";;
|
"Latest iOS" ) versionc="$device_latest_vers";;
|
||||||
"base" )
|
"base" )
|
||||||
if [[ $device_base_vers != "7.1"* ]]; then
|
if [[ $device_base_vers != "7.1"* ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user