2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 04:10:46 +00:00

Make ppping -i option support hfi interfaces

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz
2011-10-30 09:03:17 +00:00
parent 5cde251816
commit 09369ca2eb

View File

@ -35,9 +35,16 @@ then
fi
nodes=`echo $1 |sed "s/,/ /g"`
if [ -n "$ETH" ]; then
nodes=`echo $nodes |sed "s/ /-$ETH /g"`
nodes="$nodes-$ETH"
if [ -n "$ETH" ]; then
if echo $ETH | grep hf
then
nodes=`echo $nodes |sed "s/-hf[0-9]//g"`
nodes=`echo $nodes |sed "s/ /-$ETH /g"`
nodes="$nodes-$ETH"
else
nodes=`echo $nodes |sed "s/ /-$ETH /g"`
nodes="$nodes-$ETH"
fi
fi
which fping >/dev/null 2>&1