From c85405e0e6daa6d615b167b719a8dac63a2a69a7 Mon Sep 17 00:00:00 2001 From: Jeffrey Alan Scudder Date: Wed, 25 Mar 2026 22:47:25 -0700 Subject: [PATCH] fix: copy wifi_creds.json on install + wait for TTS before reboot 1. Install copies wifi_creds.json from USB to NVMe (wifi works post-install) 2. Wait for TTS to finish speaking before rebooting after install Co-Authored-By: Claude Opus 4.6 (1M context) --- fedac/native/src/ac-native.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/fedac/native/src/ac-native.c b/fedac/native/src/ac-native.c index 34b1f088d6..8bc0c3207a 100644 --- a/fedac/native/src/ac-native.c +++ b/fedac/native/src/ac-native.c @@ -976,9 +976,19 @@ static int auto_install_to_hd(ACGraph *graph, ACFramebuffer *screen, copy_file(kernel_src, "/tmp/hd/EFI/Microsoft/Boot/bootmgfw.efi"); } - // Preserve user handle/piece config on installed disk. + // Preserve user config + wifi creds on installed disk if (access(config_src, F_OK) == 0) { copy_file(config_src, "/tmp/hd/config.json"); + ac_log("[install] copied config.json\n"); + } + { + char wifi_src[64]; + snprintf(wifi_src, sizeof(wifi_src), "%s/wifi_creds.json", + source_mount); + if (access(wifi_src, F_OK) == 0) { + copy_file(wifi_src, "/tmp/hd/wifi_creds.json"); + ac_log("[install] copied wifi_creds.json\n"); + } } // Write install marker so next boot knows it's installed @@ -1227,7 +1237,9 @@ static int draw_install_reboot_prompt(ACGraph *graph, ACFramebuffer *screen, if (ev->type != AC_EVENT_KEYBOARD_DOWN) continue; if (ev->key_code == KEY_R || ev->key_code == KEY_ENTER || ev->key_code == KEY_KPENTER) { + if (tts) tts_wait(tts); // let "install complete" TTS finish play_install_accept_beep(audio); + usleep(300000); // let beep play return 1; } if (!install_ok && (ev->key_code == KEY_ESC || ev->key_code == KEY_SPACE)) { -- 2.51.2