mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
loader_lua: consider userboot console as serial
We use ascii box chars with serial console because we do not know
if terminal can draw unixode box chars. Same problem is about userboot
console.
(cherry picked from commit 5d8c062fe3)
This commit is contained in:
parent
2126962573
commit
57d6e82d1f
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue