Update device.sh

This commit is contained in:
LukeZGD 2022-03-22 09:46:03 +08:00
parent bee690b64e
commit 0d1baac430

View File

@ -194,7 +194,7 @@ CheckM8() {
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
[[ $platform == "linux" ]] && Echo "* Enter your user password when prompted" Echo "* Enter your user password when prompted"
$ipwndfu -p $ipwndfu -p
if [[ $DeviceProc == 7 ]]; then if [[ $DeviceProc == 7 ]]; then
Log "Running rmsigchks.py..." Log "Running rmsigchks.py..."
@ -203,12 +203,6 @@ CheckM8() {
cd ../.. cd ../..
else else
cd ../.. cd ../..
if [[ $platform == "macos" ]]; then
Echo "* Attempting to send pwned iBSS."
Echo "* This will fail on Apple Silicon Macs, as well as on macOS 12.3 and later."
Echo "* For more details, read the \"Troubleshooting\" wiki page in GitHub"
fi
Log "Sending iBSS..."
kDFU iBSS || echo kDFU iBSS || echo
pwnDFUDevice=$? pwnDFUDevice=$?
fi fi
@ -296,6 +290,12 @@ kDFU() {
if [[ $1 == iBSS ]]; then if [[ $1 == iBSS ]]; then
cd resources/ipwndfu cd resources/ipwndfu
if [[ $platform == "macos" ]]; then
Echo "* Attempting to send pwned iBSS."
Echo "* This will fail on Apple Silicon Macs, as well as on macOS 12.3 and later."
Echo "* If this is the case, you need to send pwned iBSS yourself before continuing."
Echo "* For more details, read the \"Troubleshooting\" wiki page in GitHub"
fi
Log "Sending iBSS..." Log "Sending iBSS..."
$ipwndfu -l ../../tmp/pwnediBSS $ipwndfu -l ../../tmp/pwnediBSS
local ret=$? local ret=$?