summaryrefslogtreecommitdiffstats
path: root/src/recovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-10-03 12:19:21 +0200
committerGravatar Nikias Bassen2013-10-03 12:19:21 +0200
commit7138a9cc3abc36b07b75bf41b9559fdaa57dc9f9 (patch)
tree1826ae0ada5a892d38d0c847675c4be0dc7b17da /src/recovery.c
parentb040d1b5f4732a431c1d900b55d6bbd3684f6c74 (diff)
downloadidevicerestore-7138a9cc3abc36b07b75bf41b9559fdaa57dc9f9.tar.gz
idevicerestore-7138a9cc3abc36b07b75bf41b9559fdaa57dc9f9.tar.bz2
AppleTV: set auto-boot to true again after restore
Apparently AppleTV units don't boot up in normal mode after restore but switch into recovery mode so we set auto-boot to true to make them boot up in normal mode.
Diffstat (limited to 'src/recovery.c')
-rw-r--r--src/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recovery.c b/src/recovery.c
index fb5a0fc..e4575fc 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -125,7 +125,7 @@ int recovery_check_mode(struct idevicerestore_client_t* client) {
return 0;
}
-static int recovery_set_autoboot(struct idevicerestore_client_t* client, int enable) {
+int recovery_set_autoboot(struct idevicerestore_client_t* client, int enable) {
irecv_error_t recovery_error = IRECV_E_SUCCESS;
recovery_error = irecv_send_command(client->recovery->client, (enable) ? "setenv auto-boot true" : "setenv auto-boot false");