core.lua (b140d14b02f2ee483806d0eeaaa2b29c6bb5463e) | core.lua (e07fc39c144831bb898110e2f423b346ee5e5983) |
---|---|
1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 177 unchanged lines hidden (view full) --- 186 loader.perform("autoboot"); 187end 188 189function core.boot() 190 config.loadelf(); 191 loader.perform("boot"); 192end 193 | 1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 177 unchanged lines hidden (view full) --- 186 loader.perform("autoboot"); 187end 188 189function core.boot() 190 config.loadelf(); 191 loader.perform("boot"); 192end 193 |
194function core.isSingleUserBoot() 195 local single_user = loader.getenv("boot_single"); 196 return single_user ~= nil and single_user:lower() == "yes"; 197end 198 |
|
194function core.isSerialBoot() 195 local c = loader.getenv("console"); 196 197 if (c ~= nil) then 198 if (c:find("comconsole") ~= nil) then 199 return true; 200 end 201 end --- 15 unchanged lines hidden --- | 199function core.isSerialBoot() 200 local c = loader.getenv("console"); 201 202 if (c ~= nil) then 203 if (c:find("comconsole") ~= nil) then 204 return true; 205 end 206 end --- 15 unchanged lines hidden --- |