Author: kevans
Date: Mon Feb 19 16:34:23 2018
New Revision: 329585
URL: https://svnweb.freebsd.org/changeset/base/329585

Log:
  stand/lua: Add core.isSingleUserBoot

Modified:
  head/stand/lua/core.lua

Modified: head/stand/lua/core.lua
==============================================================================
--- head/stand/lua/core.lua     Mon Feb 19 16:31:19 2018        (r329584)
+++ head/stand/lua/core.lua     Mon Feb 19 16:34:23 2018        (r329585)
@@ -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");
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to