mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Update some pwndfu stuff
This commit is contained in:
parent
f18988cef5
commit
ff77614c51
@ -136,7 +136,21 @@ CheckM8() {
|
|||||||
local pwnDFUTool
|
local pwnDFUTool
|
||||||
local pwnDFUDevice
|
local pwnDFUDevice
|
||||||
|
|
||||||
[[ $platform == "macos" ]] && pwnDFUTool="iPwnder32" || pwnDFUTool="ipwndfu"
|
if [[ $platform == "macos" && $(uname -m) != "x86_64" ]]; then
|
||||||
|
pwnDFUTool="iPwnder32"
|
||||||
|
elif [[ $platform == "macos" ]]; then
|
||||||
|
Selection=("iPwnder32" "ipwndfu")
|
||||||
|
Input "Select pwnDFU tool to use (Select 1 if unsure):"
|
||||||
|
select opt in "${Selection[@]}"; do
|
||||||
|
case $opt in
|
||||||
|
"ipwndfu" ) pwnDFUTool="ipwndfu"; break;;
|
||||||
|
*) pwnDFUTool="iPwnder32"; break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
else
|
||||||
|
pwnDFUTool="ipwndfu"
|
||||||
|
fi
|
||||||
|
|
||||||
Log "Entering pwnDFU mode with $pwnDFUTool..."
|
Log "Entering pwnDFU mode with $pwnDFUTool..."
|
||||||
if [[ $pwnDFUTool == "ipwndfu" ]]; then
|
if [[ $pwnDFUTool == "ipwndfu" ]]; then
|
||||||
cd resources/ipwndfu
|
cd resources/ipwndfu
|
||||||
@ -175,7 +189,7 @@ Recovery() {
|
|||||||
FindDevice "Recovery"
|
FindDevice "Recovery"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Echo "Get ready to enter DFU mode."
|
Echo "* Get ready to enter DFU mode."
|
||||||
read -p "$(Input 'Select Y to continue, N to exit recovery (Y/n)')" RecoveryDFU
|
read -p "$(Input 'Select Y to continue, N to exit recovery (Y/n)')" RecoveryDFU
|
||||||
if [[ $RecoveryDFU == 'N' || $RecoveryDFU == 'n' ]]; then
|
if [[ $RecoveryDFU == 'N' || $RecoveryDFU == 'n' ]]; then
|
||||||
Log "Exiting recovery mode."
|
Log "Exiting recovery mode."
|
||||||
|
Loading…
Reference in New Issue
Block a user