-# $OpenBSD: install.md,v 1.29 2022/03/22 15:38:27 kettenis Exp $
+# $OpenBSD: install.md,v 1.30 2022/03/28 18:53:40 kettenis Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
md_consoleinfo() {
local _fw
- CTTY=console
DEFCONS=y
+ case $(scan_dmesg '/^\([^ ]*\).*: console.*std.*$/s//\1/p') in
+ wsdisplay0)
+ CTTY=ttyC0;;
+ *)
+ CTTY=console;;
+ esac
case $CSPEED in
9600|19200|38400|57600|115200|1500000)
;;
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1192 2022/02/06 11:29:18 visa Exp $
+# $OpenBSD: install.sub,v 1.1193 2022/03/28 18:53:40 kettenis Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
if [[ $DEFCONS == y ]]; then
cp /mnt/etc/ttys /tmp/i/ttys
- sed -e "/^$CTTY/s/std.9600/std.${CSPEED}/" \
+ sed -e "/^console/s/on secure/off secure/" \
+ -e "/^$CTTY/s/std.9600/std.${CSPEED}/" \
-e "/^$CTTY/s/std.115200/std.${CSPEED}/" \
-e "/^$CTTY/s/unknown/vt220 /" \
-e "/$CTTY/s/off.*/on secure/" /tmp/i/ttys >/mnt/etc/ttys