Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /etc/kdump-adv-conf/kdump_initscripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //etc/kdump-adv-conf/kdump_initscripts/kdumpinit.rootfs
#!/bin/sh

###################################################
# Start by setting up the console to work as a user
# expects
###################################################
exec >/dev/console 2>&1
export TERM=linux
export PS1='initramfs-test:\w\$ '
stty sane


##################################################
# Start udev up
##################################################
start_udev

##################################################
# Load all the modules based on 
# /etc/module_load_list
##################################################
load_modules

##################################################
# Assemble any existing lvm arrays
##################################################
assemble_lvm_array


##################################################
# Assemble any mdraid partitions that might exist
##################################################
#TODO - FILL ME IN


##################################################
# Mount the root file system
# Note that the sample manifest modified
# The /etc/fstab file to put the root file system
# under /mnt directly
##################################################
mount /mnt
if [ $? -ne 0]
	echo "Failed to mount root fs for dump capture. rebooting"
	reboot -f
fi


##################################################
# Now capture the core dump to the target fs
# Note we need to set the date here
##################################################
if [ -f /etc/clock ]
then
	. /etc/clock
fi
if [ "$UTC" == "true" ]
then
	TIME_FORMAT=-u
else
	TIME_FORMAT=-l
fi
hwclock --hctosys $TIME_FORMAT

DATE=`date +%Y-%m-%d-%T`

cp /proc/vmcore /mnt/var/crash/$DATE/vmcore
 
##################################################
# Reboot the system to get back to production
##################################################
reboot -f

haha - 2025