fixed bug 3113, remove some error message when clearing the last configuration

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-09-27 09:31:21 +00:00
parent 8b87922c73
commit f61d3bce03
2 changed files with 13 additions and 6 deletions

View File

@ -87,9 +87,13 @@ else
#for (( num = 0; num < loop_number; num++ ))
while [ $num -lt $loop_number ]
do
num1=`expr $num % 2`
`rmdev -d -l ib$num`
`rmdev -d -l ml$num1`
`rmdev -d -l ib$num >/dev/null 2>&1`
n=`expr $num % 2`
if [ $n == 1 ]
then
mlnum=`expr $num / 2`
`rmdev -d -l ml$mlnum >/dev/null 2>&1`
fi
num=`expr $num + 1`
done

View File

@ -82,9 +82,11 @@ else
#for (( num = 0; num < loop_number; num++ ))
while [ $num -lt $loop_number ]
do
num1=`expr $num % 2`
`rmdev -d -l ib$num`
`rmdev -d -l ml$num1`
num0=`expr $num \* 2`
num1=`expr $num0 + 1`
`rmdev -d -l ib$num0 >/dev/null 2>&1`
`rmdev -d -l ib$num1 >/dev/null 2>&1`
`rmdev -d -l ml$num >/dev/null 2>&1`
num=`expr $num + 1`
done
@ -94,6 +96,7 @@ else
fi
HOST=`hostname -s`
num=0