From owner-freebsd-questions Sat Nov 2 14:26:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A64F37B401 for ; Sat, 2 Nov 2002 14:26:36 -0800 (PST) Received: from galilee.polands.org (new-24-208-57-240.new.rr.com [24.208.57.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id A218643E6E for ; Sat, 2 Nov 2002 14:26:35 -0800 (PST) (envelope-from doug@polands.org) Received: from mydomain.com (samaria.polands.org [172.16.1.17]) by galilee.polands.org (8.12.5/8.12.5) with SMTP id gA2MQYZt072039; Sat, 2 Nov 2002 16:26:34 -0600 (CST) (envelope-from doug@polands.org) Received: from 172.16.1.33 (SquirrelMail authenticated user djp) by samaria.polands.org with HTTP; Sat, 2 Nov 2002 16:26:34 -0600 (CST) Message-ID: <2556.172.16.1.33.1036275994.squirrel@samaria.polands.org> Date: Sat, 2 Nov 2002 16:26:34 -0600 (CST) Subject: Re: extracting kernel compilation options From: "Doug Poland" To: In-Reply-To: <3DC44D80.3060900@mac.com> References: <2414.172.16.1.33.1036274472.squirrel@samaria.polands.org> <3DC44D80.3060900@mac.com> X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.8) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 paul beard said: > Doug Poland wrote: >> I need to see what options a kernel was compiled with. I >> remember a few years back that there is a command that will show >> you all the kernel options and devices. Does anyone know how to >> do that? >> > > You can compile in that option: > > options INCLUDE_CONFIG_FILE # Include this file in > kernel > > and use this to extract it later: > strings -n 3 /kernel | sed -n 's/^___//p' > MYKERNEL > Hi Paul, Thanks for the tip. I suppose it goes without saying that if a kernel is not compiled with this option, then the config is not available. -- Regards, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message