aboutsummaryrefslogtreecommitdiff
path: root/stand/lua/core.lua
diff options
context:
space:
mode:
Diffstat (limited to 'stand/lua/core.lua')
-rw-r--r--stand/lua/core.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index 441a032dc51a..9d331bc0ad3a 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -383,6 +383,19 @@ function core.isZFSBoot()
return false
end
+function core.isFramebufferConsole()
+ local c = loader.getenv("console")
+ if c ~= nil then
+ if c:find("efi") == nil and c:find("vidconsole") == nil then
+ return false
+ end
+ if loader.getenv("screen.depth") ~= nil then
+ return true
+ end
+ end
+ return false
+end
+
function core.isSerialConsole()
local c = loader.getenv("console")
if c ~= nil then