summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-22 03:35:54 -0400
committerGravatar Joshua Hill2010-06-22 03:35:54 -0400
commit628f5d0ee70daec242062a3dda3a7784d516dd30 (patch)
tree619a3b63321f4846c8911b776fc53c2013e30ab9 /src
parent9ac5edef25cf7e084a639c2e70f9f7e963d96152 (diff)
downloadidevicerestore-628f5d0ee70daec242062a3dda3a7784d516dd30.tar.gz
idevicerestore-628f5d0ee70daec242062a3dda3a7784d516dd30.tar.bz2
Small change to make the program use irecovery command functions rather then duplicating them
Diffstat (limited to 'src')
-rw-r--r--src/recovery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/recovery.c b/src/recovery.c
index fbcc49c..4240817 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -205,7 +205,8 @@ int recovery_send_ibec(struct idevicerestore_client_t* client) {
const char* component = "iBEC";
irecv_error_t recovery_error = IRECV_E_SUCCESS;
- recovery_error = irecv_send_command(client->recovery->client, "setenv auto-boot true");
+ //recovery_error = irecv_send_command(client->recovery->client, "setenv auto-boot true");
+ recovery_error = irecv_setenv(client->recovery->client, "auto-boot", "true");
if (recovery_error != IRECV_E_SUCCESS) {
error("ERROR: Unable to set auto-boot environmental variable\n");
return -1;