diff options
author | Nikias Bassen | 2012-02-02 01:26:59 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-02-02 01:26:59 +0100 |
commit | 5d29908d728c824f067cca13bf4e03f4f44afa7b (patch) | |
tree | 5522b270229b12515ce74945c1c10567282c93c2 /src/normal.c | |
parent | 2eb8e6699023ca3a0825deec80a657a5c051c55a (diff) | |
download | idevicerestore-5d29908d728c824f067cca13bf4e03f4f44afa7b.tar.gz idevicerestore-5d29908d728c824f067cca13bf4e03f4f44afa7b.tar.bz2 |
normal: do not set autoboot env after entering restore mode
this needs to be done in recovery.c since it is generic and not
specific to the recovery mode entered from normal mode
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/normal.c b/src/normal.c index c9a1b45..509ed93 100644 --- a/src/normal.c +++ b/src/normal.c @@ -210,7 +210,8 @@ int normal_check_device(const char* uuid) { device = NULL; if (!product_type_node || plist_get_node_type(product_type_node) != PLIST_STRING) { - if (product_type_node) plist_free(product_type_node); + if (product_type_node) + plist_free(product_type_node); return -1; } plist_get_string_val(product_type_node, &product_type); @@ -264,22 +265,7 @@ int normal_enter_recovery(struct idevicerestore_client_t* client) { return -1; } - recovery_error = irecv_send_command(recovery, "setenv auto-boot true"); - if (recovery_error != IRECV_E_SUCCESS) { - error("ERROR: Unable to reset auto-boot variable\n"); - irecv_close(recovery); - return -1; - } - - recovery_error = irecv_send_command(recovery, "saveenv"); - if (recovery_error != IRECV_E_SUCCESS) { - error("ERROR: Unable to save auto-boot variable\n"); - irecv_close(recovery); - return -1; - } - - //client->mode = &idevicerestore_modes[MODE_RECOVERY]; - irecv_close(recovery); + client->mode = &idevicerestore_modes[MODE_RECOVERY]; recovery = NULL; return 0; } |