From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Wise Subject: Re: getting path to backport directory Date: Tue, 29 Sep 2009 16:05:09 -0500 Message-ID: <4AC27685.4010801@opengridcomputing.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Robert D. Russell" Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org If you have a configured ofa_kernel tree, then look at /config.mk. It contains the backport path. Steve. Robert D. Russell wrote: > > A general question on getting the correct backport. > > On my machine, if I do "uname -r" I get > 2.6.18-128.el5 > > If I do "cat /etc/redhat-release" I get > CentOs release 5.3 (Final) > > If I look in "/usr/src/ofa_kernel/kernel_addons/backport" > the subdirectory I need to use for the current kernel is: > 2.6.18-EL5.3 > > My question: Is there somewhere in the system where I can > find (or generate) the string "2.6.18-EL5.3"? > I want to put that in my scripts so they will automatically > pick it up whenever we change versions (as we just did when > going to Centos -- it used to be 2.6.18-EL5.2 in the RedHat > version we were running before). At present I have to edit > these scripts by hand, and that's a lousy way to do business. > > Thanks, > Bob Russell > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html