Commit 53e87f7a authored by Ad Schellevis's avatar Ad Schellevis

(boot) ditch boot.config when serial not enabled

parent d8f5a12d
...@@ -184,8 +184,8 @@ function setup_serial_port($sync = true) ...@@ -184,8 +184,8 @@ function setup_serial_port($sync = true)
// ** serial console - write out /boot.config // ** serial console - write out /boot.config
if ($serial_enabled) { if ($serial_enabled) {
file_put_contents('/boot.config', "-S{$serialspeed} -D\n"); file_put_contents('/boot.config', "-S{$serialspeed} -D\n");
} else { } elseif (file_exists('/boot.config')) {
file_put_contents('/boot.config', ""); unlink('/boot.config');
} }
// ** console settings in /boot/loader.conf // ** console settings in /boot/loader.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment