diff options
Diffstat (limited to 'src/recovery.c')
-rw-r--r-- | src/recovery.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/recovery.c b/src/recovery.c index a9d6b61..02f5689 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -158,6 +158,20 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build free(value); value = NULL; + unsigned long boot_stage = 0; + irecv_getenv(client->recovery->client, "boot-stage", &value); + if (value) { + boot_stage = strtoul(value, NULL, 0); + } + if (boot_stage > 0) { + info("iBoot boot-stage=%s\n", value); + free(value); + value = NULL; + if (boot_stage != 2) { + error("ERROR: iBoot should be at boot stage 2, continuing anyway...\n"); + } + } + unsigned long radio_error = 0; irecv_getenv(client->recovery->client, "radio-error", &value); if (value) { |