From 4d94fc8ad1c7117c5bb70942d1e7c8ae7f21e674 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 23 Sep 2011 14:43:30 +0000 Subject: [PATCH] Fix omission that prevented getipmi from 'just working' in genesis git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot2/getipmi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-nbroot2/getipmi b/xCAT-nbroot2/getipmi index b7b5a3752..5e9af2590 100755 --- a/xCAT-nbroot2/getipmi +++ b/xCAT-nbroot2/getipmi @@ -4,6 +4,13 @@ CREDPID=$! if [ -z "$XCATDEST" ]; then XCATDEST=$1 fi +if [ -z "$XCATDEST" ]; then + for parm in `cat /proc/cmdline` ; do + if echo $parm |grep xcatd= > /dev/null; then + XCATDEST=`echo $parm |awk -F= '{print $2}'` + fi + done +fi for LANCHAN in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; do if ipmitool channel info $LANCHAN 2> /dev/null | grep 802.3 > /dev/null 2>&1 && ipmitool raw 0xc 2 $LANCHAN 5 0 0 > /dev/null 2>&1; then break;