summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-07-31 15:40:46 -0300
committerRenato Botelho <renato@netgate.com>2015-07-31 15:40:46 -0300
commit6fa9f38c0c1377ab110ff97d0ba552c878e9e07e (patch)
tree2d80ccf2687d0ee070a7f5cb5ac20b5008b47f12 /etc/inc/util.inc
parentbb3ee8a1bb3aaa79afec827363362a623cb62e4d (diff)
downloadpfsense-6fa9f38c0c1377ab110ff97d0ba552c878e9e07e.zip
pfsense-6fa9f38c0c1377ab110ff97d0ba552c878e9e07e.tar.gz
Drop support for jail platform
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc21
1 files changed, 6 insertions, 15 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 169f784..b2c797b 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -1836,13 +1836,11 @@ function get_memory() {
}
function mute_kernel_msgs() {
- global $config;
+ global $g, $config;
// Do not mute serial console. The kernel gets very very cranky
// and will start dishing you cannot control tty errors.
- switch (trim(file_get_contents("/etc/platform"))) {
- case "nanobsd":
- case "jail":
- return;
+ if ($g['platform'] == 'nanobsd') {
+ return;
}
if ($config['system']['enableserial']) {
return;
@@ -1851,23 +1849,16 @@ function mute_kernel_msgs() {
}
function unmute_kernel_msgs() {
- global $config;
+ global $g;
// Do not mute serial console. The kernel gets very very cranky
// and will start dishing you cannot control tty errors.
- switch (trim(file_get_contents("/etc/platform"))) {
- case "nanobsd":
- case "jail":
- return;
+ if ($g['platform'] == 'nanobsd') {
+ return;
}
exec("/sbin/conscontrol mute off");
}
function start_devd() {
- global $g;
-
- if ($g['platform'] == 'jail') {
- return;
- }
/* Use the undocumented -q options of devd to quiet its log spamming */
$_gb = exec("/sbin/devd -q");
sleep(1);
OpenPOWER on IntegriCloud