summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-15 21:40:41 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-15 21:41:04 -0400
commit149c9dfc0c44d6971b432d40313d1fe5d709c2d0 (patch)
treef994110035ee28e7a277e8e7db9ce0637ec837d4 /etc
parentada518396de53e342a2dae3a2b7268ad56bea89f (diff)
downloadpfsense-149c9dfc0c44d6971b432d40313d1fe5d709c2d0.zip
pfsense-149c9dfc0c44d6971b432d40313d1fe5d709c2d0.tar.gz
Do not allow muting of a serial console. The kernel gets very cranky and dishes cannot control tty errors
Diffstat (limited to 'etc')
-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