From a6590b61bcbbe3b1881bb4e685fdfb67bed0fd60 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 3 Dec 2013 00:29:10 +0800 Subject: [PATCH] fixing the typo error in last commit for 2.7 --- xCAT/postscripts/confighfi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/confighfi b/xCAT/postscripts/confighfi index 9de3391dc..109d569a6 100644 --- a/xCAT/postscripts/confighfi +++ b/xCAT/postscripts/confighfi @@ -100,13 +100,13 @@ ONBOOT=yes then if echo $MASTER | egrep '^([0-9]+.){3}[0-9]+$' then - XCATMASTER=`grep "$MASTER " /etc/hosts | grep -v "^#" | awk '{print - GATEWAY_IP=`ping -c 3 $XCATMASTER-bond0 -I hf0 2>/dev/null | grep " + XCATMASTER=`grep "$MASTER " /etc/hosts | grep -v "^#" | awk '{print $2}' | awk -F '.' '{print $1}' | sed 's/-hf.*//g'` + GATEWAY_IP=`ping -c 3 $XCATMASTER-bond0 -I hf0 2>/dev/null | grep "data" | sed 's/.* (\([0-9.]*\)).*/\1/' | uniq 2>&1` elif [ -n "$MASTER" ] then XCATMASTER=`echo $MASTER | awk -F-hf '{print $1}'` - GATEWAY_IP=`ping -c 3 $XCATMASTER-bond0 -I hf0 2>/dev/null | grep " + GATEWAY_IP=`ping -c 3 $XCATMASTER-bond0 -I hf0 2>/dev/null | grep "data" | sed 's/.* (\([0-9.]*\)).*/\1/' | uniq 2>&1` fi if [ -n "$GATEWAY_IP" ]