]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/nvram/nvram.8
Remove $FreeBSD$: two-line nroff pattern
[FreeBSD/FreeBSD.git] / usr.sbin / nvram / nvram.8
1 .\"-
2 .\" Copyright (c) 2006 Maxim Sobolev <sobomax@FreeBSD.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 .\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
18 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
23 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 .\" POSSIBILITY OF SUCH DAMAGE.
25 .\"
26 .Dd June 19, 2020
27 .Dt NVRAM 8 powerpc
28 .Os
29 .Sh NAME
30 .Nm nvram
31 .Nd "display or modify contents of the EEPROM or NVRAM"
32 .Sh SYNOPSIS
33 .Nm
34 .Fl p
35 .Nm
36 .Oo Fl d Ar name Oc Ar ...
37 .Op Ar name Ns = Ns Ar value ...
38 .Sh DESCRIPTION
39 The
40 .Nm
41 utility provides an interface for displaying and changing the system's
42 configuration variables contained in EEPROM or NVRAM.
43 In the first synopsis form, all available configuration variables and their
44 current values are printed.
45 In the second form, the variable selected by
46 .Ar name
47 is either removed or its value is changed to the
48 .Ar value
49 following by
50 .Ql =
51 sign.
52 .Pp
53 The following options are available:
54 .Bl -tag -width indent
55 .It Fl d Ar name
56 Delete the variable selected by
57 .Ar name
58 from the EEPROM or NVRAM.
59 The
60 .Fl d
61 flag can be specified multiple times, in which case multiple variables
62 will be removed.
63 .It Fl p
64 Print all available configuration variables and their current values.
65 .El
66 .Sh EXAMPLES
67 Print all available configuration variables and their current values:
68 .Pp
69 .Dl "nvram -p"
70 .Pp
71 Remove the variable named
72 .Va local-mac-address? :
73 .Pp
74 .Dl "nvram -d local-mac-address\e?"
75 .Pp
76 Set the value of the
77 .Va local-mac-address?
78 variable to
79 .Dq Li true :
80 .Pp
81 .Dl "nvram local-mac-address\e?=true"
82 .Pp
83 Note that the
84 .Ql \e
85 in the above examples is used to keep the shell from interpreting the
86 .Ql \&? .
87 .Pp
88 Remove variables named
89 .Va foo
90 and
91 .Va bar
92 and set variable named
93 .Va baz
94 to
95 .Dq Li 100 :
96 .Pp
97 .Dl "nvram -d foo -d bar baz=100"
98 .Sh SEE ALSO
99 .Xr powermac_nvram 4
100 .Sh HISTORY
101 The
102 .Nm
103 utility first appeared in
104 .Fx 7.0 .
105 It is inspired by the
106 Darwin/Mac OS X
107 .Nm
108 utility.
109 .Sh AUTHORS
110 .An Maxim Sobolev Aq Mt sobomax@FreeBSD.org