aboutsummaryrefslogtreecommitdiff
path: root/bin/kenv
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2009-01-13 12:19:43 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2009-01-13 12:19:43 +0000
commitf7fc4669a71b2fd2cb3974d585d2440d071d6d1f (patch)
tree1bddb2c4198012affa5a6e0f1bda90b844289b7e /bin/kenv
parent3ed817f149407f6fb6fd2ed8efa41ca1ab288b93 (diff)
downloadsrc-f7fc4669a71b2fd2cb3974d585d2440d071d6d1f.tar.gz
src-f7fc4669a71b2fd2cb3974d585d2440d071d6d1f.zip
Document how kernel environment can be statically compiled in,
and reference a few related manpages. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=187142
Diffstat (limited to 'bin/kenv')
-rw-r--r--bin/kenv/kenv.120
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/kenv/kenv.1 b/bin/kenv/kenv.1
index 29260f0bd670..9e5345d61264 100644
--- a/bin/kenv/kenv.1
+++ b/bin/kenv/kenv.1
@@ -67,8 +67,28 @@ If the
.Fl q
option is set, warnings normally printed as a result of being unable to
perform the requested operation will be suppressed.
+.Pp
+Variables can be added to the kernel environment using the
+.Xr /boot/oader.conf
+file, or also statically compiled into the kernel using the statement
+.Pp
+.Dl Ic env Ar filename
+.Pp
+in the kernel config file.
+The file can contain lines of the form
+.Pp
+.Dl name = "value" # this is a coment
+.Pp
+where whitespace around name and '=', and
+everything after a '#' character, are ignored. Almost any printable
+character except '=' is acceptable as part of a name. Quotes
+are optional and necessary only if the value contains
+whitespace.
+.Pp
.Sh SEE ALSO
.Xr kenv 2 ,
+.Xr config 5 ,
+.Xr loader.conf 5 ,
.Xr loader 8
.Sh HISTORY
The