summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/util.inc15
1 files changed, 11 insertions, 4 deletions
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
OpenPOWER on IntegriCloud