diff --git a/restore.sh b/restore.sh index 01e5770..86d3f50 100755 --- a/restore.sh +++ b/restore.sh @@ -1565,7 +1565,7 @@ device_dfuhelper() { fi device_find_all $1 opt=$? - if [[ $opt == 1 ]]; then + if [[ $opt == 1 && $mode != "device_dfuhelper" ]]; then log "Found device in DFU mode." device_mode="DFU" return @@ -1610,7 +1610,7 @@ device_dfuhelper() { echo -n "$i " device_find_all $1 opt=$? - if [[ $opt == 1 ]]; then + if [[ $opt == 1 && $mode != "device_dfuhelper" ]]; then echo -e "\n$(log 'Found device in DFU mode.')" device_mode="DFU" return