menu: Make graphics: no an alias for serial: yes on EFI
This commit is contained in:
@@ -97,8 +97,8 @@ Miscellaneous:
|
|||||||
named `Arch Linux`). If unspecified, it is `1`.
|
named `Arch Linux`). If unspecified, it is `1`.
|
||||||
* `remember_last_entry` - If set to `yes`, remember last booted entry.
|
* `remember_last_entry` - If set to `yes`, remember last booted entry.
|
||||||
(UEFI only).
|
(UEFI only).
|
||||||
* `graphics` - If set to `no`, force CGA text mode for the boot menu, else use
|
* `graphics` - If set to `no`, force text mode for the boot menu, else use
|
||||||
a video mode. Ignored with Limine UEFI.
|
a video mode.
|
||||||
* `wallpaper` - Path to a file to use as a wallpaper. BMP, PNG, and JPEG
|
* `wallpaper` - Path to a file to use as a wallpaper. BMP, PNG, and JPEG
|
||||||
formats are supported. There can be multiple of this option, in which case
|
formats are supported. There can be multiple of this option, in which case
|
||||||
the wallpaper will be randomly selected from the provided options.
|
the wallpaper will be randomly selected from the provided options.
|
||||||
|
|||||||
@@ -1009,6 +1009,15 @@ noreturn void _menu(bool first_run) {
|
|||||||
#endif
|
#endif
|
||||||
serial_str != NULL && strcmp(serial_str, "yes") == 0;
|
serial_str != NULL && strcmp(serial_str, "yes") == 0;
|
||||||
|
|
||||||
|
#if defined (UEFI)
|
||||||
|
if (!serial) {
|
||||||
|
char *graphics_str = config_get_value(NULL, 0, "GRAPHICS");
|
||||||
|
if (graphics_str != NULL && strcmp(graphics_str, "no") == 0) {
|
||||||
|
serial = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (BIOS)
|
#if defined (BIOS)
|
||||||
if (serial) {
|
if (serial) {
|
||||||
char *baudrate_s = config_get_value(NULL, 0, "SERIAL_BAUDRATE");
|
char *baudrate_s = config_get_value(NULL, 0, "SERIAL_BAUDRATE");
|
||||||
|
|||||||
Reference in New Issue
Block a user