summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-10-26 14:48:10 +0200
committerGravatar Nikias Bassen2021-10-26 14:48:10 +0200
commit17c80a650f963be7842ef15d83e93286a0129f7a (patch)
tree88b81448d0830cb5f82042aa42a03e6c96b65c65 /src/idevicerestore.c
parent968f9e1e24d05667a30fa2b51261d9032cd009ce (diff)
downloadidevicerestore-17c80a650f963be7842ef15d83e93286a0129f7a.tar.gz
idevicerestore-17c80a650f963be7842ef15d83e93286a0129f7a.tar.bz2
Add command line option to continue despite certain errors (e.g. baseband update failure)
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 615aa0f..3892c73 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -86,6 +86,7 @@ static struct option longopts[] = {
{ "no-restore", no_argument, NULL, 'z' },
{ "version", no_argument, NULL, 'v' },
{ "ipsw-info", no_argument, NULL, 'I' },
+ { "ignore-errors", no_argument, NULL, 1 },
{ NULL, 0, NULL, 0 }
};
@@ -139,6 +140,10 @@ static void usage(int argc, char* argv[], int err)
" -P, --plain-progress Print progress as plain step and progress\n" \
" -R, --restore-mode Allow restoring from Restore mode\n" \
" -T, --ticket PATH Use file at PATH to send as AP ticket\n" \
+ " --ignore-errors Try to continue the restore process after certain\n" \
+ " errors (like a failed baseband update)\n" \
+ " WARNING: This might render the device unable to boot\n" \
+ " or only partially functioning. Use with caution.\n" \
"\n" \
"Homepage: <" PACKAGE_URL ">\n" \
"Bug Reports: <" PACKAGE_BUGREPORT ">\n",
@@ -1713,6 +1718,10 @@ int main(int argc, char* argv[]) {
ipsw_info = 1;
break;
+ case 1:
+ client->flags |= FLAG_IGNORE_ERRORS;
+ break;
+
default:
usage(argc, argv, 1);
return EXIT_FAILURE;