mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Update and add retry option
- the retry option will only be prompted once - also do not reset with gaster
This commit is contained in:
parent
8e4aa9f6d9
commit
5dd0d78d84
@ -78,7 +78,7 @@
|
||||
- cURL
|
||||
- bspatch
|
||||
- python2 (ipwndfu, rmsigchks, SimpleHTTPServer), python3 (http.server)
|
||||
- [powdersn0w](https://github.com/dora2-iOS/powdersn0w_pub) - dora2ios ([LukeZGD fork](https://github.com/LukeZGD/powdersn0w_pub))
|
||||
- [powdersn0w](https://github.com/dora2-iOS/powdersn0w_pub) - dora2ios; [LukeZGD fork](https://github.com/LukeZGD/powdersn0w_pub)
|
||||
- [ch3rryflower](https://web.archive.org/web/20200708040313/https://github.com/dora2-iOS/ch3rryflower) - dora2ios (used for iOS 4.3.x only)
|
||||
- [ipwndfu](https://github.com/LukeZGD/ipwndfu) - LukeZGD fork
|
||||
- [iPwnder32](https://github.com/dora2-iOS/iPwnder32) - dora2ios
|
||||
|
@ -265,7 +265,6 @@ EnterPwnDFU() {
|
||||
elif [[ $pwnDFUTool == "$gaster" ]]; then
|
||||
$pwnDFUTool pwn
|
||||
pwnDFUDevice=$?
|
||||
$pwnDFUTool reset
|
||||
else
|
||||
$pwnDFUTool -p
|
||||
pwnDFUDevice=$?
|
||||
|
@ -75,7 +75,6 @@ FutureRestore() {
|
||||
Echo "* Your problem may have already been addressed within the wiki page."
|
||||
Echo "* If opening an issue in GitHub, please provide a FULL log. Otherwise, your issue may be dismissed."
|
||||
echo
|
||||
Log "Downgrade script done!"
|
||||
}
|
||||
|
||||
DowngradeOther() {
|
||||
@ -164,7 +163,6 @@ iDeviceRestore() {
|
||||
Echo "* Your problem may have already been addressed within the wiki page."
|
||||
Echo "* If opening an issue in GitHub, please provide a FULL log. Otherwise, your issue may be dismissed."
|
||||
echo
|
||||
Log "Downgrade script done!"
|
||||
}
|
||||
|
||||
IPSWCustomA7() {
|
||||
@ -196,6 +194,19 @@ IPSWCustomA7() {
|
||||
fi
|
||||
}
|
||||
|
||||
RetryOption() {
|
||||
Input "Retry Command Option"
|
||||
Echo "* This gives users the option to retry the restore command."
|
||||
Echo "* It can be useful in case that the restore failed early."
|
||||
Echo "* If the restore failed with the device no longer in DFU, this will not work."
|
||||
Echo "* This option is disabled by default (N)."
|
||||
read -p "$(Input 'Enable this option? (y/N):')" Retry
|
||||
if [[ $Retry != 'Y' && $Retry != 'y' ]]; then
|
||||
return
|
||||
fi
|
||||
$1
|
||||
}
|
||||
|
||||
DowngradeOTA() {
|
||||
if [[ $DeviceProc != 7 ]]; then
|
||||
JailbreakOption
|
||||
@ -210,6 +221,7 @@ DowngradeOTA() {
|
||||
fi
|
||||
IPSWSetExtract
|
||||
FutureRestore
|
||||
RetryOption FutureRestore
|
||||
}
|
||||
|
||||
DowngradeOTAWin() {
|
||||
@ -235,6 +247,7 @@ DowngradeOTAWin() {
|
||||
IPSW32
|
||||
IPSWSetExtract
|
||||
iDeviceRestore
|
||||
RetryOption iDeviceRestore
|
||||
}
|
||||
|
||||
Downgrade() {
|
||||
@ -269,4 +282,5 @@ Downgrade4() {
|
||||
IPSW4
|
||||
IPSWSetExtract
|
||||
iDeviceRestore
|
||||
RetryOption iDeviceRestore
|
||||
}
|
||||
|
@ -293,6 +293,7 @@ Main() {
|
||||
fi
|
||||
|
||||
Downgrade
|
||||
Log "Downgrade script done!"
|
||||
ExitWin 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user