lualoader: fix color usage

Resetting to the default color scheme was done prior to reading the config.
This is bogus; colors may only be declined by the user with the
loader.conf(5) variable "loader_color", so such a request for no color will
not be completely honored as we reset to the default color scheme
unconditionally.

Approved by:	re (rgrimes)
This commit is contained in:
kevans 2018-08-30 13:29:32 +00:00
parent 6b538c0c0d
commit 660af80636

View File

@ -42,15 +42,14 @@ local password = require("password")
-- need it.
local menu
try_include("local")
config.load()
-- Our console may have been setup for a different color scheme before we get
-- here, so make sure we set the default.
if color.isEnabled() then
printc(color.default())
end
try_include("local")
config.load()
if not core.isMenuSkipped() then
menu = require("menu")
end