summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-15 21:39:26 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-15 21:41:24 -0400
commit1286004b067fb11dd8e949a2ba79fe2a07eea02e (patch)
tree25c8b83a6471b46c17f5b218b47e53e87e0ac8ec /etc/inc/config.inc
parent2b7dc757bfe465995acab5850abb6312229b388c (diff)
downloadpfsense-1286004b067fb11dd8e949a2ba79fe2a07eea02e.zip
pfsense-1286004b067fb11dd8e949a2ba79fe2a07eea02e.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/inc/config.inc')
-rw-r--r--etc/inc/config.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index e9b9e9c..9141d0d 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1816,10 +1816,18 @@ function backup_config() {
}
function mute_kernel_msgs() {
+ // 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() {
+ // 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");
}
@@ -1875,4 +1883,4 @@ function set_device_perms() {
if($g['booting']) echo ".";
$config = parse_config();
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud