summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/boot/forth/menu-commands.4th3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/boot/forth/menu-commands.4th b/usr/src/boot/forth/menu-commands.4th
index f2a3547aae..5fe6c8c62f 100644
--- a/usr/src/boot/forth/menu-commands.4th
+++ b/usr/src/boot/forth/menu-commands.4th
@@ -293,6 +293,9 @@ also menu-namespace also menu-command-helpers
then ( n c-addr/u | n 0 )
dup 0<> if ( n c-addr/u )
+ \ because all usable console names have 4 chars,
+ \ we can only compare first 4 chars.
+ drop 4
2dup s" ttyd" compare 0= if
2drop 4
else 2dup s" ttyc" compare 0= if