mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
system: better logic for -h and -D #4231
This commit is contained in:
parent
f1afe998ad
commit
fb4ee845c9
@ -1123,7 +1123,14 @@ function system_login_configure($verbose = false)
|
||||
}
|
||||
|
||||
if ($serial_enabled) {
|
||||
@file_put_contents('/boot.config', "-S{$serialspeed} -D\n");
|
||||
$serial_options = ["-S{$serialspeed}"];
|
||||
if ($console_selection[0] == 'comconsole') {
|
||||
$serial_options[] = '-h';
|
||||
}
|
||||
if (in_array('vidconsole', $console_selection)) {
|
||||
$serial_options[] = '-D';
|
||||
}
|
||||
@file_put_contents('/boot.config', join(' ', $serial_options) . "\n");
|
||||
$new_boot_config['comconsole_speed'] = '"' . $serialspeed . '"';
|
||||
$new_boot_config['boot_serial'] = '"YES"';
|
||||
} elseif (!$output_enabled) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user