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