mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 09:13:37 +01:00
stand/lua: Add core.isSingleUserBoot
This commit is contained in:
parent
e44fa94c09
commit
e07fc39c14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329585
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user