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
|
- cURL
|
||||||
- bspatch
|
- bspatch
|
||||||
- python2 (ipwndfu, rmsigchks, SimpleHTTPServer), python3 (http.server)
|
- 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)
|
- [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
|
- [ipwndfu](https://github.com/LukeZGD/ipwndfu) - LukeZGD fork
|
||||||
- [iPwnder32](https://github.com/dora2-iOS/iPwnder32) - dora2ios
|
- [iPwnder32](https://github.com/dora2-iOS/iPwnder32) - dora2ios
|
||||||
|
@ -265,7 +265,6 @@ EnterPwnDFU() {
|
|||||||
elif [[ $pwnDFUTool == "$gaster" ]]; then
|
elif [[ $pwnDFUTool == "$gaster" ]]; then
|
||||||
$pwnDFUTool pwn
|
$pwnDFUTool pwn
|
||||||
pwnDFUDevice=$?
|
pwnDFUDevice=$?
|
||||||
$pwnDFUTool reset
|
|
||||||
else
|
else
|
||||||
$pwnDFUTool -p
|
$pwnDFUTool -p
|
||||||
pwnDFUDevice=$?
|
pwnDFUDevice=$?
|
||||||
|
@ -75,7 +75,6 @@ FutureRestore() {
|
|||||||
Echo "* Your problem may have already been addressed within the wiki page."
|
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 "* If opening an issue in GitHub, please provide a FULL log. Otherwise, your issue may be dismissed."
|
||||||
echo
|
echo
|
||||||
Log "Downgrade script done!"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DowngradeOther() {
|
DowngradeOther() {
|
||||||
@ -164,7 +163,6 @@ iDeviceRestore() {
|
|||||||
Echo "* Your problem may have already been addressed within the wiki page."
|
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 "* If opening an issue in GitHub, please provide a FULL log. Otherwise, your issue may be dismissed."
|
||||||
echo
|
echo
|
||||||
Log "Downgrade script done!"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
IPSWCustomA7() {
|
IPSWCustomA7() {
|
||||||
@ -196,6 +194,19 @@ IPSWCustomA7() {
|
|||||||
fi
|
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() {
|
DowngradeOTA() {
|
||||||
if [[ $DeviceProc != 7 ]]; then
|
if [[ $DeviceProc != 7 ]]; then
|
||||||
JailbreakOption
|
JailbreakOption
|
||||||
@ -210,6 +221,7 @@ DowngradeOTA() {
|
|||||||
fi
|
fi
|
||||||
IPSWSetExtract
|
IPSWSetExtract
|
||||||
FutureRestore
|
FutureRestore
|
||||||
|
RetryOption FutureRestore
|
||||||
}
|
}
|
||||||
|
|
||||||
DowngradeOTAWin() {
|
DowngradeOTAWin() {
|
||||||
@ -235,6 +247,7 @@ DowngradeOTAWin() {
|
|||||||
IPSW32
|
IPSW32
|
||||||
IPSWSetExtract
|
IPSWSetExtract
|
||||||
iDeviceRestore
|
iDeviceRestore
|
||||||
|
RetryOption iDeviceRestore
|
||||||
}
|
}
|
||||||
|
|
||||||
Downgrade() {
|
Downgrade() {
|
||||||
@ -269,4 +282,5 @@ Downgrade4() {
|
|||||||
IPSW4
|
IPSW4
|
||||||
IPSWSetExtract
|
IPSWSetExtract
|
||||||
iDeviceRestore
|
iDeviceRestore
|
||||||
|
RetryOption iDeviceRestore
|
||||||
}
|
}
|
||||||
|
@ -293,6 +293,7 @@ Main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
Downgrade
|
Downgrade
|
||||||
|
Log "Downgrade script done!"
|
||||||
ExitWin 0
|
ExitWin 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user