| Server IP : 152.69.216.235 / Your IP : 80.80.80.28 Web Server : Apache/2.4.37 (Oracle Linux Server) System : Linux ust-wp4-prod 5.15.0-310.184.5.2.el8uek.x86_64 #2 SMP Wed Jul 9 16:08:33 PDT 2025 x86_64 User : apache ( 48) PHP Version : 8.4.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /sbin/ |
Upload File : |
#!/bin/bash
#
# Copyright (C) 2020 Oracle Corp., Inc. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl
#
# Increase kernel loglevel to 7. This is done post boot via a systemd
# service in order to avoid boot timing and excessive console output
# impacts when done via the boot cmdline grub arguments.
# Note: This service should be deprecated when the baud rate is bumped up
# to 115200.
maxloglvl=7
lvl=$(cat /proc/sys/kernel/printk | awk '{print $1}')
bootstring="loglevel"
if [ $lvl -ne "$maxloglvl" ]; then
echo "$maxloglvl" > /proc/sys/kernel/printk
(grep "^KDUMP_COMMANDLINE_REMOVE" /etc/sysconfig/kdump | grep "$bootstring") > /dev/null || sed -i 's/^KDUMP_COMMANDLINE_REMOVE="[^"]*/& '${bootstring}'/g' /etc/sysconfig/kdump
fi