From 926b77a9fbb58f3020cf5c67921d727f5ff51266 Mon Sep 17 00:00:00 2001 From: Aaron Burghardt Date: Wed, 25 Sep 2013 21:24:29 -0400 Subject: Added test for limera1n compatibility before attempting to inject it. Signed-off-by: Martin Szulecki --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/idevicerestore.c') 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) -- cgit v1.1-32-gdbae