From owner-freebsd-questions Tue Oct 27 20:21:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA16812 for freebsd-questions-outgoing; Tue, 27 Oct 1998 20:21:09 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA16806 for ; Tue, 27 Oct 1998 20:21:06 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA16498; Wed, 28 Oct 1998 14:49:59 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id OAA26085; Wed, 28 Oct 1998 14:49:59 +1030 (CST) Message-ID: <19981028144959.Q25247@freebie.lemis.com> Date: Wed, 28 Oct 1998 14:49:59 +1030 From: Greg Lehey To: MICHAEL@one.com.au, FreeBSD Questions Subject: Re: kernels References: <199810280022.KAA12332@gw.one.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199810280022.KAA12332@gw.one.com.au>; from MICHAEL@one.com.au on Wed, Oct 28, 1998 at 10:22:34AM +1000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 28 October 1998 at 10:22:34 +1000, MICHAEL@one.com.au wrote: > > Is it possible to extract a kernels configuration file ( ie its source ), from > the built kernel. Yes, if it has been built with the INCLUDE_CONFIG_FILE option. I don't believe any standard kernel is built this way, but you could do it yourself. > If so, what is the command that allows one to do this. >From /sys/i386/config/LINT: # This allows you to actually store this configuration file into # the kernel binary itself, where it may be later read by saying: # strings -aout -n 3 /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL # options INCLUDE_CONFIG_FILE # Include this file in kernel Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message