mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
lualoader: Respect loader_menu_title, prepare for align
This commit is contained in:
parent
a76f8a5bc2
commit
953d8937d5
1 changed files with 7 additions and 2 deletions
|
|
@ -380,8 +380,13 @@ function drawer.drawbox()
|
|||
printc(vl)
|
||||
end
|
||||
|
||||
screen.setcursor(x + (w / 2) - 9, y)
|
||||
printc("Welcome to FreeBSD")
|
||||
local menu_header = loader.getenv("loader_menu_title") or
|
||||
"Welcome to FreeBSD"
|
||||
local menu_header_x
|
||||
|
||||
menu_header_x = x + (w / 2) - (#menu_header / 2)
|
||||
screen.setcursor(menu_header_x, y)
|
||||
printc(menu_header)
|
||||
end
|
||||
|
||||
function drawer.draw(x, y, logo)
|
||||
|
|
|
|||
Loading…
Reference in a new issue