diff options
author | 2025-09-14 00:48:11 +0800 | |
---|---|---|
committer | 2025-09-14 23:47:20 +0200 | |
commit | a0cec3b34fb112168aaae9fbb024e15302563b34 (patch) | |
tree | 2da71d15932c232bb1fa6b05f99628a7649decf7 /src | |
parent | 8d1e798ea5578a110502c50d474c7b403f3a4579 (diff) | |
download | idevicerestore-a0cec3b34fb112168aaae9fbb024e15302563b34.tar.gz idevicerestore-a0cec3b34fb112168aaae9fbb024e15302563b34.tar.bz2 |
Fix boot-args string and handling
The logging refactoring introduced a spelling error in the boot-args string.
This commit fixes that, and also changes the boot-args handling code to priotize
Apple Silicon/MacOS recovery path before the generic iOS path.
Diffstat (limited to 'src')
-rw-r--r-- | src/recovery.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/recovery.c b/src/recovery.c index ccea423..4f7520a 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -125,11 +125,11 @@ int recovery_set_autoboot(struct idevicerestore_client_t* client, int enable) int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build_identity) { - if (client->build_major >= 8) { - client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1rogress"); - } else if (client->macos_variant) { - client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress -restore"); - } + if (client->macos_variant) { + client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress -restore"); + } else if (client->build_major >= 8) { + client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress"); + } /* upload data to make device boot restore mode */ |