From 149c9dfc0c44d6971b432d40313d1fe5d709c2d0 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 15 Jul 2009 21:40:41 -0400 Subject: Do not allow muting of a serial console. The kernel gets very cranky and dishes cannot control tty errors --- etc/inc/util.inc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'etc/inc/util.inc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index e43bdaa..00d4ce6 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -956,12 +956,19 @@ function get_memory() { } function mute_kernel_msgs() { - return; - exec("/sbin/conscontrol mute on"); + // Do not mute serial console. The kernel gets very very cranky + // and will start dishing you cannot control tty errors. + if(trim(file_get_contents("/etc/platform")) == "nanobsd") + return; + exec("/sbin/conscontrol mute on"); } function unmute_kernel_msgs() { - exec("/sbin/conscontrol mute off"); + // Do not mute serial console. The kernel gets very very cranky + // and will start dishing you cannot control tty errors. + if(trim(file_get_contents("/etc/platform")) == "nanobsd") + return; + exec("/sbin/conscontrol mute off"); } function start_devd() { @@ -1017,4 +1024,4 @@ function isAjax() { } -?> +?> \ No newline at end of file -- cgit v1.1