[ewg] Re: [ofa-general] requisite problems with rhel5

Steve Wise swise at opengridcomputing.com
Tue May 1 13:58:03 PDT 2007



On Tue, 2007-05-01 at 15:46 -0500, Steve Wise wrote:

> I think build_env.sh shouldn't use the kernel uname to determine if the
> distro is redhat5.  Rather, it should grok the contents
> of /etc/redhat-release to determine if its rhel5 or not...
> 
> Is this worthy of fixing for 1.2?

Maybe this?

--- build_env.sh.org	2007-05-01 10:53:22.000000000 -0500
+++ build_env.sh	2007-05-01 10:54:54.000000000 -0500
@@ -288,8 +288,8 @@ elif [ -f /etc/fedora-release ]; then
 elif [ -f /etc/rocks-release ]; then
     DISTRIBUTION="Rocks"
 elif [ -f /etc/redhat-release ]; then
-        case ${K_VER} in
-                *el5*)
+        case $(cat /etc/redhat-release) in
+                *"release 5"*)
                 DISTRIBUTION="redhat5"
                 ;;
                 *)






More information about the ewg mailing list