From 1c15165f9688a344c6f68af2a8c5874d2ed307b7 Mon Sep 17 00:00:00 2001 From: hydazz Date: Thu, 26 Nov 2026 23:44:34 +1100 Subject: restore: Allow the caller to select the post-restore action --- src/restore.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/restore.c') diff --git a/src/restore.c b/src/restore.c index fbe54de..251f2ec 100644 --- a/src/restore.c +++ b/src/restore.c @@ -5772,6 +5772,9 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit if (client->restore_boot_args) { plist_dict_set_item(opts, "RestoreBootArgs", plist_new_string(client->restore_boot_args)); } + if (client->post_restore_action) { + plist_dict_set_item(opts, "PostRestoreAction", plist_new_string(client->post_restore_action)); + } plist_t spp = plist_access_path(build_identity, 2, "Info", "SystemPartitionPadding"); if (spp) { spp = plist_copy(spp); -- cgit v1.1-32-gdbae