Skip to content

Commit

Permalink
Some changes in ipwndfu error handling
Browse files Browse the repository at this point in the history
should address issues like #671
  • Loading branch information
LukeZGD committed Feb 11, 2025
1 parent 3bfe414 commit 3bdfbfb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2174,6 +2174,13 @@ device_ipwndfu() {
"rmsigchks" )
log "Running rmsigchks..."
$p2_sudo "$python2" rmsigchks.py
tool_pwned=$?
if [[ $platform == "macos" ]]; then
print "* If you get the error \"No backend available,\" install libusb in Homebrew/MacPorts"
fi
if [[ $tool_pwned != 0 ]]; then
error "ipwndfu $1 failed. Please run the script again"
fi
;;

"alloc8" )
Expand All @@ -2183,9 +2190,13 @@ device_ipwndfu() {
fi
log "Installing alloc8 to device"
$p2_sudo "$python2" ipwndfu -x
tool_pwned=$?
if [[ $platform == "macos" ]]; then
print "* If you get the error \"No backend available,\" install libusb in Homebrew/MacPorts"
fi
if [[ $tool_pwned != 0 ]]; then
error "ipwndfu $1 failed. Please run the script again"
fi
;;
esac
if [[ $device_sudoloop == 1 ]]; then
Expand Down

0 comments on commit 3bdfbfb

Please sign in to comment.