Commit dfb09411 authored by Franco Fichtner's avatar Franco Fichtner

system: strict serial mode, need to test this

parent a7f01e99
...@@ -1739,7 +1739,11 @@ function system_login_configure($verbose = false) ...@@ -1739,7 +1739,11 @@ function system_login_configure($verbose = false)
} }
if ($serial_enabled) { if ($serial_enabled) {
if (count($console_selection) >= 2) {
@file_put_contents('/boot.config', "-S{$serialspeed} -D\n"); @file_put_contents('/boot.config', "-S{$serialspeed} -D\n");
} else {
@file_put_contents('/boot.config', "-S{$serialspeed} -h\n");
}
$new_boot_config['comconsole_speed'] = '"'.$serialspeed.'"'; $new_boot_config['comconsole_speed'] = '"'.$serialspeed.'"';
$new_boot_config['boot_serial'] = '"YES"'; $new_boot_config['boot_serial'] = '"YES"';
} elseif (!$output_enabled) { } elseif (!$output_enabled) {
......
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