Merge remote-tracking branch 'github-tlaurion/automatic_boot_newline'

PR #1779
This commit is contained in:
Jonathon Hall 2024-09-05 10:00:55 -04:00
commit c0762aa5e7
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -6,8 +6,8 @@
# continue with automatic boot, nonzero if user interrupted.
pause_automatic_boot()
{
if IFS= read -t "$CONFIG_AUTO_BOOT_TIMEOUT" -s -n 1 -p \
"Automatic boot in $CONFIG_AUTO_BOOT_TIMEOUT seconds unless interrupted by keypress... "; then
if IFS= read -t "$CONFIG_AUTO_BOOT_TIMEOUT" -s -n 1 -r -p \
$'Automatic boot in '"$CONFIG_AUTO_BOOT_TIMEOUT"$' seconds unless interrupted by keypress...\n'; then
return 1 # Interrupt automatic boot
fi
return 0 # Continue with automatic boot