mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Set currdev and loaddev variables.
This commit is contained in:
parent
f77b61980e
commit
fc2b065c41
2 changed files with 10 additions and 10 deletions
|
|
@ -106,13 +106,13 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
|
|||
bootfile = GetEnvironmentVariable(ARCENV_BOOTFILE);
|
||||
if (bootfile)
|
||||
setenv("bootfile", bootfile, 1);
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, arc_fmtdev(&currdev),
|
||||
arc_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, arc_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
#endif
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, efi_fmtdev(&currdev),
|
||||
efi_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, efi_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
|
||||
setenv("LINES", "24", 1); /* optional */
|
||||
|
||||
archsw.arch_autoload = efi_autoload;
|
||||
|
|
|
|||
|
|
@ -106,13 +106,13 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
|
|||
bootfile = GetEnvironmentVariable(ARCENV_BOOTFILE);
|
||||
if (bootfile)
|
||||
setenv("bootfile", bootfile, 1);
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, arc_fmtdev(&currdev),
|
||||
arc_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, arc_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
#endif
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, efi_fmtdev(&currdev),
|
||||
efi_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, efi_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
|
||||
setenv("LINES", "24", 1); /* optional */
|
||||
|
||||
archsw.arch_autoload = efi_autoload;
|
||||
|
|
|
|||
Loading…
Reference in a new issue