diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index bdc592838..2713c52e4 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -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) {