From dfb094112e3297911ddbdfa478d3bdc129d22d22 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 18 Dec 2016 23:24:17 +0100 Subject: [PATCH] system: strict serial mode, need to test this --- src/etc/inc/system.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {