diff options
author | Martin Szulecki | 2012-02-05 18:51:12 +0100 |
---|---|---|
committer | Martin Szulecki | 2012-02-05 18:51:12 +0100 |
commit | 19d604ff509afd00f83a2687b243774d18654b65 (patch) | |
tree | 571896875bb93b8526bf9fe102af14463a049434 /src/recovery.c | |
parent | 1f08d426ac7c845c58d65d45e03bcae9b6dd63bf (diff) | |
download | idevicerestore-19d604ff509afd00f83a2687b243774d18654b65.tar.gz idevicerestore-19d604ff509afd00f83a2687b243774d18654b65.tar.bz2 |
restore: Set autoboot before using getenv calls to fix iPhone 4S restore
Diffstat (limited to 'src/recovery.c')
-rw-r--r-- | src/recovery.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/recovery.c b/src/recovery.c index 4d283e1..9e86cc5 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -152,14 +152,14 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build } } - irecv_send_command(client->recovery->client, "getenv build-version"); - irecv_send_command(client->recovery->client, "getenv build-style"); - irecv_send_command(client->recovery->client, "getenv radio-error"); - if (recovery_set_autoboot(client, 0) < 0) { return -1; } + irecv_send_command(client->recovery->client, "getenv build-version"); + irecv_send_command(client->recovery->client, "getenv build-style"); + irecv_send_command(client->recovery->client, "getenv radio-error"); + /* send logo and show it */ if (recovery_send_applelogo(client, build_identity) < 0) { error("ERROR: Unable to send AppleLogo\n"); |