[ofa-general] [PATCH] mstflint - Fix redirection to /dev/null in hca_self_test.ofed

sebastien dugue sebastien.dugue at bull.net
Mon May 11 05:38:21 PDT 2009


  Redirect 'rpm -qa' stderr to /dev/null instead of null.

Signed-Off-By: Sebastien Dugue <sebastien.dugue at bull.net>
---
 hca_self_test.ofed |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hca_self_test.ofed b/hca_self_test.ofed
index c7c5492..4f29080 100755
--- a/hca_self_test.ofed
+++ b/hca_self_test.ofed
@@ -168,7 +168,7 @@ else
     fi
 
     if [ $RPM_KER_VER -ne 0 ]; then
-        RPM_CUR_BOOTED_KER=`rpm -qa 2> null| grep kernel-ib | grep $(echo $BOOTED_KER | sed s/-/_/) | wc -l`
+        RPM_CUR_BOOTED_KER=`rpm -qa 2> /dev/null| grep kernel-ib | grep $(echo $BOOTED_KER | sed s/-/_/) | wc -l`
         if [ $RPM_CUR_BOOTED_KER -eq 0 ]; then
             echo -e "Host Driver RPM Check .................. ${red}FAIL"
             tput sgr0
-- 
1.6.3.rc3.12.gb7937




More information about the general mailing list