Improved INCLUDE_CONFIG_FILE

Wojciech A. Koszek wkoszek at freebsd.org
Mon Mar 26 13:27:34 UTC 2007


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/


More information about the freebsd-current mailing list