From owner-freebsd-questions Fri Jul 20 19:48: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id 4FBAE37B401 for ; Fri, 20 Jul 2001 19:47:59 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 94720 invoked by uid 100); 21 Jul 2001 02:47:58 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15192.60766.592020.140581@guru.mired.org> Date: Fri, 20 Jul 2001 21:47:58 -0500 To: Shawn Ramsey Cc: questions@freebsd.org Subject: Re: currently running kernel? In-Reply-To: <48007665@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Shawn Ramsey types: > Is there anyway to tell which kernel that you booted from? I guess you coud > use uname -a and use a different config file for each kernel, but is there > an easier way? What do you mean by "which kernel"? uname -a gives you the config file name and the date it was built, which some would consider a sufficient identification. If you're doing proper change tracking with cvs or similar, that should allow you to recover the contents of the config file. If you want the contents of the config file without doing change tracking, you can use the INCLUDE_CONFIG_FILE option in the kernel build, and then extract the config file from the kernel with strings and sed. See LINT for details. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message