system: strict serial mode, need to test this

This commit is contained in:
Franco Fichtner 2016-12-18 23:24:17 +01:00
parent a7f01e99d7
commit dfb094112e

View File

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