fixing the typo error in last commit for master
This commit is contained in:
parent
ef5ec3c17c
commit
20ec000e77
@ -105,13 +105,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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user