2 .\" Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
4 .TH nvram 8 "October 28, 2003"
6 nvram \- manipulate firmware NVRAM variables
27 command allows manipulation of firmware NVRAM variables. It
28 can be used to get or set a variable. It can also be used to print
29 all of the variables or set a list of variables from a file.
30 Changes to NVRAM variables are only saved by clean restart or shutdown.
34 can be any string. In practice, not all strings will be accepted.
35 New World machines can create new variables as desired. Some variables
36 require administrator privilege to get or set.
40 must match the data type required for
42 Binary data can be set using the %xx notation, where xx is the hex
43 value of the byte. The type for new variables is always binary
49 Deletes the named firmware variable.
53 Set firmware variables from a text file. The file must be a
54 list of "name value" statements. The first space on each line
55 is taken to be the separator between "name" and "value". If
56 the last character of a line is \\, the value extends to the next line.
60 Use XML format for reading and writing variables.
61 This option must be used before the
65 options, since arguments are processed in order.
68 Delete all of the firmware variables.
71 Print all of the firmware variables.
75 example% nvram boot-args="-s rd=*hd:10"
78 Set the boot-args variable to "-s rd=*hd:10". This would specify
79 single user mode with the root device in hard drive partition 10.
82 example% nvram my-variable="String One%00String Two%00%00"
85 Create a new variable, my-variable, containing a list of two
86 C-strings that is terminated by a NUL.
89 example% nvram -d my-variable
92 Deletes the variable named my-variable.