mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
system: try to boot without kernel message mute relics
They don't seem to work in some cases and aren't used a lot.
This commit is contained in:
parent
1293d53ec0
commit
789b777d46
@ -940,31 +940,6 @@ function system_cron_configure($verbose = false)
|
||||
}
|
||||
}
|
||||
|
||||
function system_console_mutable()
|
||||
{
|
||||
/* this function name is a pun :) */
|
||||
|
||||
global $config;
|
||||
|
||||
return isset($config['system']['primaryconsole']) &&
|
||||
($config['system']['primaryconsole'] == 'serial' ||
|
||||
$config['system']['primaryconsole'] == 'null');
|
||||
}
|
||||
|
||||
function system_console_mute()
|
||||
{
|
||||
if (system_console_mutable()) {
|
||||
exec('/sbin/conscontrol mute on');
|
||||
}
|
||||
}
|
||||
|
||||
function system_console_unmute()
|
||||
{
|
||||
if (system_console_mutable()) {
|
||||
exec('/sbin/conscontrol mute off');
|
||||
}
|
||||
}
|
||||
|
||||
function system_console_types()
|
||||
{
|
||||
return array(
|
||||
|
||||
@ -68,8 +68,6 @@ convert_config();
|
||||
* has consequences for printing bootup info and can clobber
|
||||
* stty probing during interface auto-detection.
|
||||
*/
|
||||
system_console_mute();
|
||||
|
||||
system_devd_configure(true);
|
||||
system_login_configure(true);
|
||||
|
||||
@ -127,6 +125,4 @@ system_powerd_configure(true);
|
||||
*/
|
||||
system_syslog_start(true);
|
||||
|
||||
system_console_unmute();
|
||||
|
||||
exit(0);
|
||||
|
||||
@ -35,8 +35,6 @@ require_once("rrd.inc");
|
||||
require_once("system.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
system_console_mute();
|
||||
|
||||
if (set_networking_interfaces_ports()) {
|
||||
/* need to stop local servers to prevent faulty leases */
|
||||
killbypid('/var/dhcpd/var/run/dhcpd.pid', 'TERM', true);
|
||||
@ -50,5 +48,3 @@ if (set_networking_interfaces_ports()) {
|
||||
plugins_configure('vpn', true);
|
||||
rrd_configure(true);
|
||||
}
|
||||
|
||||
system_console_unmute();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user