summaryrefslogtreecommitdiffstats
path: root/bin/kenv/kenv.1
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-04-17 13:08:14 +0000
committermux <mux@FreeBSD.org>2002-04-17 13:08:14 +0000
commitef239236f8ceb6f7b60b88adb5e1f2eb8845f514 (patch)
treefa41b138f6f660725a488c2b9cf51a3a4daa1e50 /bin/kenv/kenv.1
parenta207e41bef089b8849a230f44088a562d0b5d19f (diff)
downloadFreeBSD-src-ef239236f8ceb6f7b60b88adb5e1f2eb8845f514.zip
FreeBSD-src-ef239236f8ceb6f7b60b88adb5e1f2eb8845f514.tar.gz
Use the new functionalities provided by the kenv(2) syscall.
Reviewed by: peter
Diffstat (limited to 'bin/kenv/kenv.1')
-rw-r--r--bin/kenv/kenv.120
1 files changed, 17 insertions, 3 deletions
diff --git a/bin/kenv/kenv.1 b/bin/kenv/kenv.1
index fb0e050..241b490 100644
--- a/bin/kenv/kenv.1
+++ b/bin/kenv/kenv.1
@@ -28,15 +28,20 @@
.Os
.Sh NAME
.Nm kenv
-.Nd dump the kernel environment
+.Nd dump or modify the kernel environment
.Sh SYNOPSIS
.Nm
.Op Fl h
-.Op Ar variable
+.Nm
+.Ar variable Ns Op = Ns Ar value
+.Nm
+.Fl u
+.Ar variable
.Sh DESCRIPTION
The
.Nm
-utility will dump the kernel environment.
+utility will dump the kernel environment if
+invoked without arguments.
If the
.Fl h
option is specified, it will limit the report to kernel probe hints.
@@ -45,6 +50,15 @@ If an optional
name is specified,
.Nm
will only report that value.
+If the
+.Fl u
+option is specified,
+.Nm
+will delete the given environment variable.
+If the environment variable is followed by an optional
+.Ar value
+.Nm
+will set the environment variable to this value.
.Sh SEE ALSO
.Xr loader 8
.Sh HISTORY
OpenPOWER on IntegriCloud