summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2004-07-17 03:26:08 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2004-07-17 03:26:08 +0000
commitc8d953e54c1c301247e3f8dd9775cfc61e5300a8 (patch)
treefe8e7ec9061dbbe212e39fd6cb8305113b17b5e5 /distrib
parent777e443a4907c980d426ece9a6f7cdb21fea4f1b (diff)
Add 'stty <tty> <speed>' 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@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
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