From 81e26dea444c84b285fc89a95a916fc654fbedf7 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 18 Jun 2025 15:39:35 +0200 Subject: system: prefer to keep baud rate than to force speed to 115200 Commit 75edff2 ("system: retrieve the serial console's baud rate at boot") decided to force the terminal's speed to 115200 bps, but that only causes trouble, because each time the speed cannot be retrieved, it is forced to 115200. Better use "-s" to keep the current speed in this case, which is what causes the least surprise at boot. --- sbin/init.d/system | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/init.d/system b/sbin/init.d/system index 82dd6ce..a231e62 100755 --- a/sbin/init.d/system +++ b/sbin/init.d/system @@ -129,14 +129,14 @@ function update_consoles { chmod 620 "${path}" fi - # get the boot baud rate if none was set, or default to 115200 + # get the boot baud rate if none was set, or default to keeping baud rate if [ -n "${name##*:*}" ]; then # try to get baud rate at boot baud=$(stty < "$path" 2>/dev/null | grep -o 'speed [0-9]*' | cut -f2 -d' ') if [ -n "$baud" ]; then name=${name}:$baud else - name=${name}:115200 + name=${name}: fi fi -- 2.17.5