A simple fix for #6120

- Retire system_console_configure()
- Replace above call on rc.bootup by setup_serial_port()
This commit is contained in:
Renato Botelho 2016-05-09 10:27:45 -03:00
parent e7c23d826e
commit 941ddb5253
2 changed files with 2 additions and 16 deletions

View File

@ -1956,20 +1956,6 @@ function system_do_shell_commands($early = 0) {
}
}
function system_console_configure() {
global $config, $g;
if (isset($config['system']['developerspew'])) {
$mt = microtime();
echo "system_console_configure() being called $mt\n";
}
if (isset($config['system']['disableconsolemenu'])) {
touch("{$g['varetc_path']}/disableconsole");
} else {
unlink_if_exists("{$g['varetc_path']}/disableconsole");
}
}
function system_dmesg_save() {
global $g;
if (isset($config['system']['developerspew'])) {

View File

@ -319,8 +319,8 @@ echo "done.\n";
/* start load balancer daemon */
relayd_configure();
/* configure console menu */
system_console_configure();
/* configure console menu and serial port*/
setup_serial_port();
/* start DHCP service */
services_dhcpd_configure();