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.
28 can be any string. In practice, not all strings will be accepted.
29 Old world machines have a fixed set of Open Firmware variables.
30 New World machines can create new varibles as desired. Some variables
31 require adminstrator 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
41 Two Open Firmware variables have special treatment on old world
48 starts with "# bootr," the
50 variable will be present. Getting or setting
54 while preserving the "# bootr". In most cases when setting boot arguments
55 for the kernel, there is no need to test for old world and set
59 with the desired arguments.
63 Print all of the Open Firmware variables.
66 Set Open Firmware variables from a text file. The file must be a
67 list name=value statements. If the last character of a line is
68 \\, the value will be continued to the next line.
72 example% nvram boot-args="-s rd=*hd:10"
75 Set the boot-args variable to "-s rd=*hd:10". This would specifiy
76 single user mode with the root device in hard drive partition 10.
79 example% nvram my-variable="String One%00String Two%00%00"
82 Create a new variable, my-variable, containging a list of two
83 C-strings that is terminated by a NUL.
88 Files containing patches for old world machines.