mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
(boot) ditch boot.config when serial not enabled
This commit is contained in:
parent
d8f5a12d1f
commit
53e87f7a95
@ -184,8 +184,8 @@ function setup_serial_port($sync = true)
|
||||
// ** serial console - write out /boot.config
|
||||
if ($serial_enabled) {
|
||||
file_put_contents('/boot.config', "-S{$serialspeed} -D\n");
|
||||
} else {
|
||||
file_put_contents('/boot.config', "");
|
||||
} elseif (file_exists('/boot.config')) {
|
||||
unlink('/boot.config');
|
||||
}
|
||||
|
||||
// ** console settings in /boot/loader.conf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user