configure the kdump file in enablekdump postscript

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12004 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-03-26 15:04:36 +00:00
parent a92b34d80d
commit a8dcb097f0

View File

@ -77,7 +77,9 @@ if [ ! -z "$DUMP" ]; then
if [ "$KDPROTO" = "nfs" ]; then
if (pmatch $OSVER "sles*") || (pmatch $OSVER "suse*") || [ -f /etc/SuSE-release ]; then
echo "$DUMP" > /etc/sysconfig/kdump;
KDPATH=${KDPATH//\//\\\/}
KDPATH="nfs:\/\/${KDIP}${KDPATH}"
sed -i "s/^KDUMP_TRANSFER=.*$/KDUMP_TRANSFER=\"${KDPATH}\"/" /etc/sysconfig/kdump
/etc/init.d/boot.kdump restart
else
if (pmatch $OSVER "fedora*") || (pmatch $OSVER "rhel6*") || (pmatch $OSVER "rhels6*") || [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ];then