aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efivar/efivar.8
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-08-31 17:53:50 +0000
committerWarner Losh <imp@FreeBSD.org>2017-08-31 17:53:50 +0000
commitb0da7c79f10201f5113d326ef8dfe6708598ba74 (patch)
treec8290d2cf88a3dbd0c3160d9f525ba88454c9d01 /usr.sbin/efivar/efivar.8
parent6b4a1e856fbce74c45c54f38b84521f8bdf4e44f (diff)
downloadsrc-b0da7c79f10201f5113d326ef8dfe6708598ba74.tar.gz
src-b0da7c79f10201f5113d326ef8dfe6708598ba74.zip
Add UCS2->UTF8 option.
Many UEFI variables are UCS2 strings (some NUL terminated, others not). Add --utf8 (-u) to convert UCS2 strings to UTF8 before printing. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=323066
Diffstat (limited to 'usr.sbin/efivar/efivar.8')
-rw-r--r--usr.sbin/efivar/efivar.86
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/efivar/efivar.8 b/usr.sbin/efivar/efivar.8
index 1c23303e295d..07c7366e7dec 100644
--- a/usr.sbin/efivar/efivar.8
+++ b/usr.sbin/efivar/efivar.8
@@ -32,7 +32,7 @@
.Nd UEFI environment variable interaction
.Sh SYNOPSIS
.Nm
-.Op Fl abdDHlLNpRtw
+.Op Fl abdDHlLNpRtuw
.Op Fl n Ar name
.Op Fl f Ar file
.Op Fl -append
@@ -51,6 +51,7 @@
.Op Fl -print
.Op Fl -print-decimal
.Op Fl -raw-guid
+.Op Fl -utf8
.Op Fl -write
.Sh DESCRIPTION
This program manages
@@ -143,6 +144,9 @@ Do not display the variable name.
Print the value of the variable.
.It Fl R Fl -raw-guid
Do not substitute well known names for GUID numeric values in output.
+.It Fl u Fl -utf8
+Treat the value of the variable as UCS2 and convert it to UTF8 and
+print the result.
.It Fl w Fl -write
Write (replace) the variable specified with the value specified from
standard input.