]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
Added Wind River support to hca_self_test
authorDan Goldberg <dang@mellanox.com>
Mon, 23 May 2016 14:43:39 +0000 (17:43 +0300)
committerDan Goldberg <dang@mellanox.com>
Mon, 23 May 2016 14:43:39 +0000 (17:43 +0300)
Signed-off-by: Dan Goldberg <dang@mellanox.com>
small_utils/hca_self_test.ofed

index 9458821a35b81a79a455052124a10144f3034bb8..9695fa82f4c84d5b80f5ee12709513f78b9aba60 100755 (executable)
@@ -96,9 +96,15 @@ elif [ -f /etc/debian_version ]; then
     INSTALL_PREFIX=/opt/topspin
     g_pkg_cmd="dpkg"
 else
-    echo "Error: hca_self_test does not support this OS."
-    EXIT_CODE=1
-    exit $EXIT_CODE
+    OUT=`grep -q "Wind River" /etc/issue`
+    is_wind_river=$?
+    if [ "$is_wind_river" -eq "0" ]; then
+        OS_TYPE="RED_HAT"
+    else
+        echo "Error: hca_self_test does not support this OS."
+        EXIT_CODE=1
+        exit $EXIT_CODE
+    fi
 fi
 
 for cmd in  lspci cat id $g_pkg_cmd uname grep ls awk egrep modprobe; do