summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2013-09-25 21:24:29 -0400
committerGravatar Martin Szulecki2013-10-24 14:37:25 +0200
commit926b77a9fbb58f3020cf5c67921d727f5ff51266 (patch)
tree4e1ba308759696ad7026ee5ed3eaecd4569b87a8 /src/idevicerestore.c
parent27d18c86865601673375d08573a0c512c401b280 (diff)
downloadidevicerestore-926b77a9fbb58f3020cf5c67921d727f5ff51266.tar.gz
idevicerestore-926b77a9fbb58f3020cf5c67921d727f5ff51266.tar.bz2
Added test for limera1n compatibility before attempting to inject it.
Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 5e9b700..c32db88 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -743,7 +743,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
// if the device is in DFU mode, place device into recovery mode
if (client->mode->index == MODE_DFU) {
recovery_client_free(client);
- if (client->flags & FLAG_CUSTOM) {
+ if ((client->flags & FLAG_CUSTOM) && limera1n_is_supported(client->device)) {
info("connecting to DFU\n");
if (dfu_client_new(client) < 0) {
if (delete_fs && filesystem)