Do not show PwnDFU Tool Option on ASi Macs

ASi Macs work with ipwnder only. Avoids issues like #252
This commit is contained in:
LukeZGD 2023-01-29 21:50:17 +08:00
parent 09a6b4f3b2
commit d03b923017

View File

@ -817,23 +817,22 @@ device_enter_mode() {
device_ipwndfu pwn device_ipwndfu pwn
elif [[ $device_proc == 7 ]]; then elif [[ $device_proc == 7 ]]; then
# A7 uses gaster or ipwnder # A7 uses gaster or ipwnder
opt="$gaster pwn" opt="$ipwnder"
input "PwnDFU Tool Option" if [[ $platform != "macos" ]]; then
print "* Select tool to be used for entering pwned DFU mode." opt+=" -p"
print "* This option is set to ipwnder by default (1)." fi
input "Select your option:" if [[ $platform != "macos" ]] || [[ $platform == "macos" && $(uname -m) == "x86_64" ]]; then
select opt2 in "ipwnder" "gaster"; do input "PwnDFU Tool Option"
case $opt2 in print "* Select tool to be used for entering pwned DFU mode."
"gaster" ) break;; print "* This option is set to ipwnder by default (1)."
* ) input "Select your option:"
opt="$ipwnder" select opt2 in "ipwnder" "gaster"; do
if [[ $platform != "macos" ]]; then case $opt2 in
opt+=" -p" "gaster" ) opt="$gaster pwn"; break;;
fi * ) break;;
break esac
;; done
esac fi
done
log "Placing device to pwnDFU mode using: $opt" log "Placing device to pwnDFU mode using: $opt"
$opt $opt
tool_pwned=$? tool_pwned=$?