summaryrefslogtreecommitdiffstats
path: root/distrib/arm64
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-05-29 20:40:34 +0000
committerkettenis <kettenis@openbsd.org>2018-05-29 20:40:34 +0000
commitb189dd1c9662e536b87b3b4291729b337852b2b1 (patch)
tree734ae26a991ecbe6307047bb4e969d0a1c3b0043 /distrib/arm64
parentWhen adjusting the speed of a 'console' tty entry, also change entries (diff)
downloadwireguard-openbsd-b189dd1c9662e536b87b3b4291729b337852b2b1.tar.xz
wireguard-openbsd-b189dd1c9662e536b87b3b4291729b337852b2b1.zip
Make md_consoleinfo() set the appropriate variables that make install.sub
adjust the speed of the 'console' ttys entry to reflect the speed of the console being used to install. Makes for a smoother install on Rockchip devices for which the SoC vendor had the not so brilliant idea that 1500000 is a suitable default speed. ok benno@, tb@
Diffstat (limited to 'distrib/arm64')
-rw-r--r--distrib/arm64/ramdisk/install.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/distrib/arm64/ramdisk/install.md b/distrib/arm64/ramdisk/install.md
index 80bf114f3c5..a2e4d8d3d81 100644
--- a/distrib/arm64/ramdisk/install.md
+++ b/distrib/arm64/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.9 2018/03/23 05:02:27 deraadt Exp $
+# $OpenBSD: install.md,v 1.10 2018/05/29 20:40:34 kettenis Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -150,4 +150,12 @@ md_congrats() {
}
md_consoleinfo() {
+ CTTY=console
+ DEFCONS=y
+ case $CSPEED in
+ 9600|19200|38400|57600|115200|1500000)
+ ;;
+ *)
+ CSPEED=115200;;
+ esac
}