core.lua (fa4a2394a76aadd0702ff5b7eeb7387b678b34a8) | core.lua (b140d14b02f2ee483806d0eeaaa2b29c6bb5463e) |
---|---|
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.bootserial() | 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 202 --- 14 unchanged lines hidden --- | 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 202 --- 14 unchanged lines hidden --- |