Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Nov 2002 14:11:12 -0800
From:      paul beard <paulbeard@mac.com>
To:        Doug Poland <doug@polands.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: extracting kernel compilation options
Message-ID:  <3DC44D80.3060900@mac.com>
References:  <2414.172.16.1.33.1036274472.squirrel@samaria.polands.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Poland wrote:
> Hello,
> 
> 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

-- 
Paul Beard / 8040 27th Ave NE / Seattle WA 98115 /
paulbeard [at] mac [ dot] com / 206 529 8400

weblog @ <http://paulbeard.no-ip.org/movabletype/>;

Surprise due today.  Also the rent.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DC44D80.3060900>