From a2caca7b0406350821c5995f2f007db350258b3d Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 14 Dec 2012 09:38:58 +0000 Subject: [PATCH] fix the typo issue to make remoteimmsetup to work git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-genesis-scripts/bin/remoteimmsetup | 6 +++--- xCAT-nbroot2/remoteimmsetup | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-genesis-scripts/bin/remoteimmsetup b/xCAT-genesis-scripts/bin/remoteimmsetup index 1b3c2d1f4..7be13ab60 100755 --- a/xCAT-genesis-scripts/bin/remoteimmsetup +++ b/xCAT-genesis-scripts/bin/remoteimmsetup @@ -23,7 +23,7 @@ echo " $BMCMAC " > /tmp/bmcreq.xml rm /tmp/remsetup.xml -while [ ! -f /tmp/remsetup.xml ] || grep error /tmp/ipmicfg.xml; do +while [ ! -f /tmp/remsetup.xml ] || grep error /tmp/remsetup.xml; do if [ -f /tmp/remsetup.xml ]; then timer=60 while [ $timer -gt 0 ]; do @@ -35,9 +35,9 @@ while [ ! -f /tmp/remsetup.xml ] || grep error /tmp/ipmicfg.xml; do echo -en " \r"; if [ -f /etc/xcat/cert.pem -a -f /etc/xcat/certkey.pem ]; then #use client cert if available - cat /tmp/bmcreq.xml | openssl s_client -key /etc/xcat/certkey.pem -cert /etc/xcat/cert.pem -connect $XCATDEST -quiet 2> /dev/null > /tmp/ipmicfg.xml + cat /tmp/bmcreq.xml | openssl s_client -key /etc/xcat/certkey.pem -cert /etc/xcat/cert.pem -connect $XCATDEST -quiet 2> /dev/null > /tmp/remsetup.xml else - cat /tmp/bmcreq.xml | openssl s_client -connect $XCATDEST -quiet 2> /dev/null > /tmp/ipmicfg.xml + cat /tmp/bmcreq.xml | openssl s_client -connect $XCATDEST -quiet 2> /dev/null > /tmp/remsetup.xml fi done rm /tmp/bmcreq.xml diff --git a/xCAT-nbroot2/remoteimmsetup b/xCAT-nbroot2/remoteimmsetup index 1b3c2d1f4..7be13ab60 100755 --- a/xCAT-nbroot2/remoteimmsetup +++ b/xCAT-nbroot2/remoteimmsetup @@ -23,7 +23,7 @@ echo " $BMCMAC " > /tmp/bmcreq.xml rm /tmp/remsetup.xml -while [ ! -f /tmp/remsetup.xml ] || grep error /tmp/ipmicfg.xml; do +while [ ! -f /tmp/remsetup.xml ] || grep error /tmp/remsetup.xml; do if [ -f /tmp/remsetup.xml ]; then timer=60 while [ $timer -gt 0 ]; do @@ -35,9 +35,9 @@ while [ ! -f /tmp/remsetup.xml ] || grep error /tmp/ipmicfg.xml; do echo -en " \r"; if [ -f /etc/xcat/cert.pem -a -f /etc/xcat/certkey.pem ]; then #use client cert if available - cat /tmp/bmcreq.xml | openssl s_client -key /etc/xcat/certkey.pem -cert /etc/xcat/cert.pem -connect $XCATDEST -quiet 2> /dev/null > /tmp/ipmicfg.xml + cat /tmp/bmcreq.xml | openssl s_client -key /etc/xcat/certkey.pem -cert /etc/xcat/cert.pem -connect $XCATDEST -quiet 2> /dev/null > /tmp/remsetup.xml else - cat /tmp/bmcreq.xml | openssl s_client -connect $XCATDEST -quiet 2> /dev/null > /tmp/ipmicfg.xml + cat /tmp/bmcreq.xml | openssl s_client -connect $XCATDEST -quiet 2> /dev/null > /tmp/remsetup.xml fi done rm /tmp/bmcreq.xml