summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/restore.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index 9729e72..53f2367 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -945,7 +945,13 @@ int restore_send_nor(restored_client_t restore, struct idevicerestore_client_t*
component_data = NULL;
component_size = 0;
- plist_array_append_item(norimage_array, plist_new_data((char*)nor_data, (uint64_t)nor_size));
+ /* make sure iBoot is the first entry in the array */
+ if (!strncmp("iBoot", filename, 4)) {
+ plist_array_insert_item(norimage_array, plist_new_data((char*)nor_data, (uint64_t)nor_size), 0);
+ } else {
+ plist_array_append_item(norimage_array, plist_new_data((char*)nor_data, (uint64_t)nor_size));
+ }
+
free(nor_data);
nor_data = NULL;
nor_size = 0;