Merge branch 'vendor/FILE'
[dragonfly.git] / sbin / kget / kget.8
1 .\" Copyright (c) 1999 Andrzej Bialecki <abial@FreeBSD.org>
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD: src/sbin/kget/kget.8,v 1.3.2.5 2001/08/16 11:35:45 ru Exp $
26 .\" $DragonFly: src/sbin/kget/kget.8,v 1.3 2006/02/17 19:33:32 swildner Exp $
27 .\"
28 .Dd February 20, 1999
29 .Dt KGET 8
30 .Os
31 .Sh NAME
32 .Nm kget
33 .Nd "print kernel change information"
34 .Sh SYNOPSIS
35 .Nm
36 .Ar filename
37 .Sh DESCRIPTION
38 The
39 .Nm
40 utility allows one to view or save any device configuration information
41 which was changed in userconfig (-c) session.  Most typically, it is written
42 to a /boot/kernel.conf file which is then loaded from /boot/loader.rc
43 (using "load -t userconfig_script /boot/kernel.conf"), saving the user
44 from having to re-enter it each time the system is booted.
45 .Pp
46 .Nm
47 uses the
48 .Xr sysctl 3
49 interface to retrieve data from the kernel and requires that at least
50 the
51 .Va machdep.uc_devlist
52 symbol be present.  If it's not, you may need to update your kernel
53 before using this utility.
54 .Pp
55 Usage:
56 .Nm
57 .Ar filename
58 .Pp
59 where
60 .Ar filename
61 is either a regular file (which is overwritten) or -, indicating that
62 standard output should be used.
63 .Sh SEE ALSO
64 .Xr sysctl 3
65 .Sh HISTORY
66 The
67 .Nm
68 command appeared in
69 .Fx 3.1 ,
70 as part of the PicoBSD distribution by
71 .An Andrzej Bialecki
72 .Sh BUGS
73 Sure to be some.