On Jan 29, 2008, at 1:32 PM, Jeff Squyres wrote:
Thanks! I slightly modified your patch to just update the existing rhel regexp and it seems to work for me (rhel4, rhel5); see attached if you care. I'll commit this to both the mtt trunk and core branch, and will pass it on to the whatami maintainers. On Jan 29, 2008, at 12:56 PM, Tim Prins wrote:Hi, The 'whatami' script does not recognize our new cluster. Attached is a patch to make it work. For reference, the relevant line in /etc/issue is: Red Hat Enterprise Linux Server release 5 (Tikanga) Thanks, Tim Index: client/whatami/whatami =================================================================== --- client/whatami/whatami (revision 1142) +++ client/whatami/whatami (working copy) @@ -189,6 +189,10 @@ #distro=${distro_brand}${distro_version}_$ {sub_distro} distro=${distro_brand}${distro_version} + elif [ -n "`egrep 'Red Hat Enterprise Linux Server release [0-9]*' /etc/issue`" ]; then + distro_brand=rhel_server + distro_version=`grep 'Red Hat' /etc/issue | sed -e 's/Red Hat Enterprise Linux Server release \([0-9]*\).*/\1/' ` + distro=${distro_brand}${distro_version} elif [ -n "`egrep 'Cray Rocks Linux release 1.3' / etc/issue`" ]; then distro=rh73 _______________________________________________ mtt-users mailing list mtt-us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users-- Jeff Squyres Cisco Systems _______________________________________________ mtt-users mailing list mtt-us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users
-- Jeff Squyres Cisco Systems
whatami-rh.patch
Description: Binary data