[openib-general] [PATCH] install.sh: Cause less pain to SRP users who didn't RTFM

Cain, Brian (GE Healthcare) Brian.Cain at ge.com
Wed Dec 13 14:09:27 PST 2006


There's gotta be a good way to let people know they're going down the
wrong path on this one.

Signed-off-by: Brian Cain <Brian.Cain at ge.com>

--- ofed/openib/scripts/install.sh      2006-12-13 14:48:51.747995000
-0700
+++ ofed_fix/openib/scripts/install.sh  2006-12-13 14:59:00.586574000
-0700
@@ -1070,6 +1070,14 @@
                         echo "# Load SDP module" >>
${IB_CONF_DIR}/openib.conf
                         echo "# SDP_LOAD=no" >>
${IB_CONF_DIR}/openib.conf
                 fi
+
+
+                if [[ "$srp" == "y" || "$srp_target" == "y" ]] &&
+                   [[ $(egrep 'flags.*lm' /proc/cpuinfo | wc -l) > 0 ]]
&&
+                   [[ $(uname -p | egrep 'i[3-9]86' | wc -l) > 0 ]];
then
+                   echo '!!WARNING!! SRP is not supported for 32-bit OS
running on 64-bit capable hardware'
+                fi
+

                 if [ "$srp" == "y" ]; then
                         echo >> ${IB_CONF_DIR}/openib.conf

--
-Brian 




More information about the general mailing list