From c8d953e54c1c301247e3f8dd9775cfc61e5300a8 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 17 Jul 2004 03:26:08 +0000 Subject: Add 'stty ' line to boot.conf if serial console is made the default console. Ensures specified speed is actually used. Pointed out by Derick Siddoway and Bob Humphrey. ok deraadt@ --- distrib/miniroot/install.sub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib/miniroot/install.sub') diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 8cb489f76a3..4b9675f5554 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.344 2004/07/17 02:13:53 krw Exp $ +# $OpenBSD: install.sub,v 1.345 2004/07/17 03:26:07 krw Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2004 Todd Miller, Theo de Raadt, Ken Westerback @@ -1677,9 +1677,9 @@ questions() { _td=$2 ask_yn "Change the default console to $_bd?" [[ $resp == n ]] && return - echo "set tty $_bd" >>/mnt/etc/boot.conf ask_which "speed" "should $_bd use" "9600 19200 38400 57600 115200" 9600 [[ $resp == done ]] && return + echo "set tty $_bd\nstty $_bd $resp" >>/mnt/etc/boot.conf sed -e "/^${_td}/s/std.9600/std.${resp}/" \ -e "/^${_td}/s/unknown/vt220 /" \ -e "/${_td}/s/off/on secure/" /mnt/etc/ttys >/tmp/ttys -- cgit v1.2.3