summaryrefslogtreecommitdiff
path: root/sysutils/adjustkernel/files/adjustkernel.1
blob: e57462eb505eb41cb6091462a3d80afd704ba474 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.\"     $Emsi: adjustkernel.1,v 1.1 2002/03/01 01:25:37 mjl Exp $
.\"	$NetBSD: adjustkernel.1,v 1.4 2004/11/03 10:49:58 hubertf Exp $
.\"
.\" Copyright (c) 2004 Hubert Feyrer <hubertf@NetBSD.org>,
.\"		     Martin Laubach <mjl@NetBSD.org>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"        This product includes software developed by 
.\"        Hubert Feyrer <hubertf@NetBSD.org> and
.\"        Martin Laubach <mjl@NetBSD.org>
.\" 4. Neither the name of authors nor the names of any
.\"    contributors may be used to endorse or promote products derived
.\"    from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd November 3, 2004
.Dt ADJUSTKERNEL 1
.Sh NAME
.Nm adjustkernel
.Nd generate kernel config from dmesg
.Sh SYNOPSIS
.Nm adjustkernel
.Op Fl debug
.Op Fl mesg Ar dmesg-file
.Op Fl outfile Ar new-config
.Op Fl remove
.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 22n -compact
.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.de>,
later hacked in shape and packetized by Martin J. Laubach <mjl@netbsd.org>.
.Sh BUGS
On thursdays.