From d2e82fadf0b57cbe8607e3d839ace2baba7b4daa Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 16 Jul 2025 13:46:43 -0400 Subject: [PATCH] Few minor tweaks to install to disk script. --- usr/local/bin/install_to_disk.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr/local/bin/install_to_disk.sh b/usr/local/bin/install_to_disk.sh index 7f2ed4c..adf5d0f 100755 --- a/usr/local/bin/install_to_disk.sh +++ b/usr/local/bin/install_to_disk.sh @@ -124,6 +124,14 @@ if [[ "$CONFIRM" != "yes" ]]; then exit 0 fi +# Rely on progress bar beeps for status +echo +echo "Fenrir will be silent during the install process except for progress beeps." +echo "To restore speech if needed, press any key." +echo "Press Enter to begin installation..." +read -r +echo "command tempdisablespeech" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-deamon.sock 2>/dev/null || true + # Unmount any mounted partitions on target disk echo "Unmounting target disk partitions..." sudo umount "${TARGET_DEVICE}"* 2>/dev/null || true @@ -134,7 +142,7 @@ echo "This will take several minutes depending on USB size and disk speed." echo # Use dd to clone the entire device -if ! sudo dd if="$SOURCE_DEVICE" of="$TARGET_DEVICE" bs=4M status=progress; then +if ! sudo dd if="$SOURCE_DEVICE" of="$TARGET_DEVICE" bs=4M oflag=sync status=progress; then error_exit "Failed to clone USB to target disk" fi @@ -171,7 +179,6 @@ if sudo mount "$TARGET_ROOT_PART" "$TEMP_MOUNT" 2>/dev/null; then sudo rm -f "$TEMP_MOUNT/home/stormux/.firstboot" 2>/dev/null || true # Update any USB-specific configurations if needed - # (Add any specific cleanups here) sudo umount "$TEMP_MOUNT" fi