Forth version of EFI autoresizing
r331321 delegated autoresizing to an efi-autoresizecons command that currently is expected to be done in forth/lua prior to drawing anything useful. Add the Forth version of the lua addition in r331321, hook efi.4th up to be installed. efiboot? was written by dteske@; anything outside of that may be blamed on me.
This commit is contained in:
parent
a7defaea9a
commit
5ef2174a50
@ -18,6 +18,7 @@ FILES+= brand-fbsd.4th
|
||||
FILES+= check-password.4th
|
||||
FILES+= color.4th
|
||||
FILES+= delay.4th
|
||||
FILES+= efi.4th
|
||||
FILES+= frames.4th
|
||||
FILES+= loader.4th
|
||||
FILES+= logo-beastie.4th
|
||||
|
@ -26,5 +26,16 @@
|
||||
|
||||
only forth definitions
|
||||
|
||||
\ Place holder for more functions
|
||||
: efiboot? ( -- flag )
|
||||
s" efi-version" getenv -1 <> dup if
|
||||
swap drop ( c-addr flag -- flag )
|
||||
then
|
||||
;
|
||||
|
||||
: maybe-efi-resizecons
|
||||
efiboot? if
|
||||
efi-autoresizecons
|
||||
then
|
||||
;
|
||||
|
||||
.( EFI boot environment) cr
|
||||
|
@ -6,12 +6,15 @@
|
||||
\
|
||||
\ Includes additional commands
|
||||
include /boot/loader.4th
|
||||
include /boot/efi.4th
|
||||
try-include /boot/loader.rc.local
|
||||
|
||||
\ Reads and processes loader.conf variables
|
||||
\ NOTE: Change to `initialize' if you enable the below boot menu
|
||||
start
|
||||
|
||||
maybe-efi-resizecons
|
||||
|
||||
\ Tests for password -- executes autoboot first if a password was defined
|
||||
check-password
|
||||
|
||||
|
@ -3,11 +3,14 @@
|
||||
\
|
||||
\ Includes additional commands
|
||||
include /boot/loader.4th
|
||||
include /boot/efi.4th
|
||||
try-include /boot/loader.rc.local
|
||||
|
||||
\ Reads and processes loader.conf variables
|
||||
initialize
|
||||
|
||||
maybe-efi-resizecons
|
||||
|
||||
\ Tests for password -- executes autoboot first if a password was defined
|
||||
check-password
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user