2 .\" Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 .TH nvram 8 "December 12, 2000"
6 nvram \- manipulate Open Firmware NVRAM variables
22 command allows manipulation of Open Firmware NVRAM variables. It
23 can be used to get or set a variable. It can also be used to print
24 all of the variables or set a list of variables from a file.
25 Changes to NVRAM variables are only saved by clean restart or shutdown.
29 can be any string. In practice, not all strings will be accepted.
30 New World machines can create new variables as desired. Some variables
31 require administrator privilege to get or set.
35 must match the data type required for
37 Binary data can be set using the %xx notation, where xx is the hex
38 value of the byte. The type for new variables is always binary
43 Print all of the Open Firmware variables.
46 Set Open Firmware variables from a text file. The file must be a
47 list name=value statements. If the last character of a line is
48 \\, the value will be continued to the next line.
52 example% nvram boot-args="-s rd=*hd:10"
55 Set the boot-args variable to "-s rd=*hd:10". This would specify
56 single user mode with the root device in hard drive partition 10.
59 example% nvram my-variable="String One%00String Two%00%00"
62 Create a new variable, my-variable, containing a list of two
63 C-strings that is terminated by a NUL.