Re: Improved INCLUDE_CONFIG_FILE

From: Wojciech A. Koszek <wkoszek_at_freebsd.org>
Date: Mon, 26 Mar 2007 13:58:06 +0000
On Sun, Mar 25, 2007 at 11:55:26PM -0500, Eric Anderson wrote:
> On 03/25/07 09:34, Gavin Atkinson wrote:
> >On Sat, 24 Mar 2007, Wojciech A. Koszek wrote:
> >>On Sun, Mar 25, 2007 at 08:00:41AM +1000, Peter Jeremy wrote:

[..]

> >strings `sysctl -n kern.bootfile` | grep ^___ | sed -e 's/^___//'
> >
> >should still work if it was in a .comment section
> 
> 
> Unless you no longer have the running kernel, or it has changed since 
> the boot up of the system.  A sysctl knob to dump it is *very* useful.

The main intention of my work is ask beggining user if he has specific
option compiled into the kernel, and do it as easy, as typing "kldstat"
for checking, if he has required KLD loaded. Yes, it is useful there.
config -k <K>, where the <K> can be either /boot/kernel/kernel or kernel
from port-mortem analysisshould be also quite useful.

-- 
Wojciech A. Koszek
wkoszek_at_FreeBSD.org
http://FreeBSD.czest.pl/dunstan/
Received on Mon Mar 26 2007 - 11:27:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC