mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-01-02 19:25:31 +00:00
reverting commenting out code by accident
This commit is contained in:
parent
8d32355d6f
commit
7152d931c9
|
@ -589,30 +589,30 @@ int futurerestore::doRestore(const char *ipsw){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ((client->build_major > 8)) {
|
if ((client->build_major > 8)) {
|
||||||
// if (!client->image4supported) {
|
if (!client->image4supported) {
|
||||||
// /* send ApTicket */
|
/* send ApTicket */
|
||||||
// if (recovery_send_ticket(client) < 0) {
|
if (recovery_send_ticket(client) < 0) {
|
||||||
// error("WARNING: Unable to send APTicket\n");
|
error("WARNING: Unable to send APTicket\n");
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
/* now we load the iBEC */
|
/* now we load the iBEC */
|
||||||
// if (recovery_send_ibec(client, build_identity) < 0) {
|
if (recovery_send_ibec(client, build_identity) < 0) {
|
||||||
// reterror(-8,"ERROR: Unable to send iBEC\n");
|
reterror(-8,"ERROR: Unable to send iBEC\n");
|
||||||
// }
|
}
|
||||||
// printf("waiting for device to reconnect... ");
|
printf("waiting for device to reconnect... ");
|
||||||
// recovery_client_free(client);
|
recovery_client_free(client);
|
||||||
//
|
|
||||||
// /* this must be long enough to allow the device to run the iBEC */
|
/* this must be long enough to allow the device to run the iBEC */
|
||||||
// /* FIXME: Probably better to detect if the device is back then */
|
/* FIXME: Probably better to detect if the device is back then */
|
||||||
// sleep(7);
|
sleep(7);
|
||||||
// for (int i=0;getDeviceMode(true) != MODE_RECOVERY && i<40; i++) putchar('.'),usleep(USEC_PER_SEC*0.5);
|
for (int i=0;getDeviceMode(true) != MODE_RECOVERY && i<40; i++) putchar('.'),usleep(USEC_PER_SEC*0.5);
|
||||||
// putchar('\n');
|
putchar('\n');
|
||||||
//
|
|
||||||
// if (!check_mode(client))
|
if (!check_mode(client))
|
||||||
// reterror(-15, "failed to reconnect to device in recovery (iBEC) mode\n");
|
reterror(-15, "failed to reconnect to device in recovery (iBEC) mode\n");
|
||||||
|
|
||||||
//do magic
|
//do magic
|
||||||
if (_client->image4supported) get_sep_nonce(client, &client->sepnonce, &client->sepnonce_size);
|
if (_client->image4supported) get_sep_nonce(client, &client->sepnonce, &client->sepnonce_size);
|
||||||
|
|
Loading…
Reference in a new issue