aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2021-02-14 08:28:29 +0000
committerToomas Soome <tsoome@FreeBSD.org>2021-02-14 19:49:23 +0000
commit5d8c062fe3ee7b2d6aed0b46d22f62c7771c0af8 (patch)
treea0bf854dc885cc87b4e1689823ff2d960e09cc5f /stand
parent12148d4300dbbd93260bf2801cdb9eda8b3b05a4 (diff)
Diffstat (limited to 'stand')
-rw-r--r--stand/lua/core.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index a119c3c258f8..55c26e0d6d39 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -403,7 +403,10 @@ end
function core.isSerialConsole()
local c = loader.getenv("console")
if c ~= nil then
- if c:find("comconsole") ~= nil then
+ -- serial console is comconsole, but also userboot.
+ -- userboot is there, because we have no way to know
+ -- if the user terminal can draw unicode box chars or not.
+ if c:find("comconsole") ~= nil or c:find("userboot") ~= nil then
return true
end
end