summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2004-07-17 03:26:07 +0000
committerkrw <krw@openbsd.org>2004-07-17 03:26:07 +0000
commit7802172da9054215bc81ce88fbd1a78df69c43d6 (patch)
treee19bcdbea77e3429b6207d8efa2da673e71fe35d
parentsome ansi; khalek@linuxgamers.net (diff)
downloadwireguard-openbsd-7802172da9054215bc81ce88fbd1a78df69c43d6.tar.xz
wireguard-openbsd-7802172da9054215bc81ce88fbd1a78df69c43d6.zip
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@
-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