> I use > > ~ $ cat /etc/boot.conf > stty com0 115200 > set tty com0 > ~ $
You can configure a serial console in boot.conf, and switch back to the default local console by holding the Ctrl during bootup to skip loading the conf file (on i386 & amd64 at least, not sure about other arches). From boot(8): boot.conf processing can be skipped, and the automatic boot cancelled, by holding down either Control key as boot starts. Unfortunately this only works for BIOS boot but not UEFI. The code in [1] calls efi_cons_getshifts() [2], which is not yet implemented. The BIOS booter uses a pc_getshifts() function [3] which makes INT 16h calls to determine whether any modifier keys are being held down. Maybe someone reading this knows the UEFI equivalent! -Andrew [1] https://github.com/openbsd/src/blob/33c7e43e4e2fdb5b68b68a1ba8bc54d78fc2c18c/sys/arch/amd64/stand/efiboot/machdep.c#L93 [2] https://github.com/openbsd/src/blob/33c7e43e4e2fdb5b68b68a1ba8bc54d78fc2c18c/sys/arch/amd64/stand/efiboot/efiboot.c#L579 [3] https://github.com/openbsd/src/blob/33c7e43e4e2fdb5b68b68a1ba8bc54d78fc2c18c/sys/arch/i386/stand/libsa/bioscons.c#L99

