mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
stand/lua: Rename bootserial for clarity
This commit is contained in:
parent
fa4a2394a7
commit
b140d14b02
4 changed files with 6 additions and 6 deletions
|
|
@ -50,7 +50,7 @@ function color.isEnabled()
|
|||
return false;
|
||||
end
|
||||
end
|
||||
return (not core.bootserial());
|
||||
return (not core.isSerialBoot());
|
||||
end
|
||||
|
||||
color.disabled = (not color.isEnabled());
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ function core.boot()
|
|||
loader.perform("boot");
|
||||
end
|
||||
|
||||
function core.bootserial()
|
||||
function core.isSerialBoot()
|
||||
local c = loader.getenv("console");
|
||||
|
||||
if (c ~= nil) then
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ function menu.run(m)
|
|||
end
|
||||
|
||||
function menu.skip()
|
||||
if (core.bootserial() )then
|
||||
if (core.isSerialBoot())then
|
||||
return true;
|
||||
end
|
||||
local c = string.lower(loader.getenv("console") or "");
|
||||
|
|
|
|||
|
|
@ -43,14 +43,14 @@ function intstring(num)
|
|||
end
|
||||
|
||||
function screen.clear()
|
||||
if (core.bootserial()) then
|
||||
if (core.isSerialBoot()) then
|
||||
return;
|
||||
end
|
||||
loader.printc("\027[H\027[J");
|
||||
end
|
||||
|
||||
function screen.setcursor(x, y)
|
||||
if (core.bootserial()) then
|
||||
if (core.isSerialBoot()) then
|
||||
return;
|
||||
end
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ function screen.defcolor()
|
|||
end
|
||||
|
||||
function screen.defcursor()
|
||||
if (core.bootserial()) then
|
||||
if (core.isSerialBoot()) then
|
||||
return;
|
||||
end
|
||||
loader.printc("\027[25;0H");
|
||||
|
|
|
|||
Loading…
Reference in a new issue