From 17c80a650f963be7842ef15d83e93286a0129f7a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 26 Oct 2021 14:48:10 +0200 Subject: Add command line option to continue despite certain errors (e.g. baseband update failure) --- src/idevicerestore.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/idevicerestore.c') 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; -- cgit v1.1-32-gdbae