summaryrefslogtreecommitdiff
path: root/sysutils/adjustkernel/files/adjustkernel.1
blob: 02c8b435ce1b2fdfacc5e6933c1a3f827ceefe2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.\"     $Emsi: adjustkernel.1,v 1.1 2002/03/01 01:25:37 mjl Exp $
.\"	$NetBSD: adjustkernel.1,v 1.2 2002/03/01 01:55:01 wiz Exp $
.\"
.Dd February 28, 2002
.Dt ADJUSTKERNEL 1
.Sh NAME
.Nm adjustkernel
.Nd generate kernel config from dmesg
.Sh SYNOPSIS
.Nm adjustkernel
.Op Fl outfile Ar new-config
.Op Fl mesg Ar dmesg-file
.Op Fl remove
.Op Fl debug
.Fl file Ar source-config
.Sh DESCRIPTION
.Nm
generates a new kernel configuration file from the
current dmesg output and the current kernel config file.
.Pp
The generation can be customized by using the following
options:
.Bl -tag -width Fl
.It Fl debug
be verbose and generate noise (mainly useful for debugging).
.It Fl file Ar source-config
read the currently booted kernel from source-config.
This option is mandatory.
.It Fl outfile Ar new-config
saves the newly generated config file to
.Ar new-config ;
otherwise the new config will be written to stdout.
.It Fl mesg Ar dmesg-file
read the dmesg data from
.Ar dmesg-file ,
defaults to calling
.Pa /sbin/dmesg
and using its output.
.It Fl remove
causes the tool to remove entries in the config file instead
of commenting them out.
.El
.Pp
Note that options can be shortened, as long as they can be
unambigously distinguished.
.Sh EXAMPLES
To generate a new kernel config after having booted a
GENERIC kernel,
.Bd -literal
adjustkernel -f GENERIC -o MYKERNEL
.Ed
.Sh SEE ALSO
.Xr options 4
.Sh AUTHORS
Originally created by Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>,
later hacked in shape and packetized by Martin J. Laubach <mjl@netbsd.org>.
.Sh BUGS
On thursdays.