stand/lua: Add core.isSingleUserBoot

This commit is contained in:
Kyle Evans 2018-02-19 16:34:23 +00:00
parent e44fa94c09
commit e07fc39c14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329585

View File

@ -191,6 +191,11 @@ function core.boot()
loader.perform("boot");
end
function core.isSingleUserBoot()
local single_user = loader.getenv("boot_single");
return single_user ~= nil and single_user:lower() == "yes";
end
function core.isSerialBoot()
local c = loader.getenv("console");