Fix nbroot discovery broadcast domain collision semantics

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1113 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-04-17 18:58:45 +00:00
parent ab6e434fc9
commit cf20516682

View File

@ -101,7 +101,7 @@ while :; do
MYB=`ifconfig $nic|grep "Bcast"|awk '{print $3}'|awk -F: '{print $2}'`
for dnic in `ifconfig -a|grep HWaddr|grep -v sit|awk '{print $1}'|grep -v $nic`; do
OTB=`ifconfig $dnic|grep "Bcast"|awk '{print $3}'|awk -F: '{print $2}'`
if [ "$OTB" == "$MYB" ]; then # if broadcasts match, down the other nic
if [ ! -z "$MYB" -a "$OTB" == "$MYB" ]; then # if broadcasts match, down the other nic
ifconfig $dnic down
fi
done