Revision dc61252a
Added by Renato Botelho almost 9 years ago
src/etc/inc/util.inc | ||
---|---|---|
2017 | 2017 |
|
2018 | 2018 |
function mute_kernel_msgs() { |
2019 | 2019 |
global $g, $config; |
2020 |
// Do not mute serial console. The kernel gets very very cranky |
|
2021 |
// and will start dishing you cannot control tty errors. |
|
2022 |
if ($g['platform'] == 'nanobsd') { |
|
2023 |
return; |
|
2024 |
} |
|
2020 |
|
|
2025 | 2021 |
if ($config['system']['enableserial']) { |
2026 | 2022 |
return; |
2027 | 2023 |
} |
... | ... | |
2030 | 2026 |
|
2031 | 2027 |
function unmute_kernel_msgs() { |
2032 | 2028 |
global $g; |
2033 |
// Do not mute serial console. The kernel gets very very cranky |
|
2034 |
// and will start dishing you cannot control tty errors. |
|
2035 |
if ($g['platform'] == 'nanobsd') { |
|
2036 |
return; |
|
2037 |
} |
|
2029 |
|
|
2038 | 2030 |
exec("/sbin/conscontrol mute off"); |
2039 | 2031 |
} |
2040 | 2032 |
|
Also available in: Unified diff
Deprecate nanobsd platform and remove all conditionals that uses it