From 9f2a9ad2a22c91414f6269496896d40f49f0be1a Mon Sep 17 00:00:00 2001 From: mxi1 Date: Mon, 28 Feb 2011 10:21:26 +0000 Subject: [PATCH] fix some error in enablekdump postscript git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8938 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/enablekdump | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump index d2e3f93ee..473ae6055 100755 --- a/xCAT/postscripts/enablekdump +++ b/xCAT/postscripts/enablekdump @@ -12,12 +12,12 @@ for i in `/bin/cat /proc/cmdline`; do ETHX=${ifname%:$MACX*} break elif [ "$KEY" = "netdev" ]; then - ETHX=$netdev + ETHX=`/bin/echo $i | /bin/awk -F= '{print $2}'` MACX=`/sbin/ip link show $netdev | /bin/grep ether | /bin/awk '{print $2}'` break elif [ "$KEY" = "BOOTIF" ]; then - MACX=$BOOTIF - ETHX=`/sbin/ifconfig | /bin/grep -i $BOOTIF | /bin/awk '{print $1}'` + MACX=`/bin/echo $i | /bin/awk -F= '{print $2}'` + ETHX=`/sbin/ifconfig | /bin/grep -i $MACX | /bin/awk '{print $1}'` break fi done