diff --git a/operation/mkraid.sh b/operation/mkraid.sh index 3d763fc..7a421d0 100755 --- a/operation/mkraid.sh +++ b/operation/mkraid.sh @@ -164,8 +164,7 @@ testBeforeMkraid(){ # used" for i in $DEVICELIST do - if [ mdadm -Ds -v | grep $i ];then # >>${LOGDIR}${LOGFILE} 2>>${LOGDIR}${LOGFILE} -# if [ $? == "0" ]; then + if [ mdadm -Ds -v | grep -w $i ];then ERRNO="6" return 1 fi