OpenBoot 2.x Command Reference Manual

Editing the Contents of NVRAMRC

The NVRAMRC editor, nvedit, lets you create and modify the contents of NVRAMRC using the commands listed in Table 3-4.

Table 3-4 NVRAMRC Editor Commands

Command 

Description 

nvalias alias device-path

Store the command "devalias alias device-path" in NVRAMRC. The alias persists until the nvunalias or set-defaults commands are executed.

nvedit

Enter the NVRAMRC editor. If data remains in the temporary buffer from a previous nvedit session, resume editing those previous contents. If not, read the contents of NVRAMRC into the temporary buffer and begin editing them.

nvquit

Discard the contents of the temporary buffer, without writing it to NVRAMRC. Prompt for confirmation. 

nvrecover

Recover the contents of NVRAMRC if they have been lost as a result of the execution of set-defaults; then enter the editor as with nvedit. nvrecover fails if nvedit is executed between the time that the NVRAMRC contents were lost and the time that nvrecover is executed.

nvrun

Execute the contents of the temporary buffer. 

nvstore

Copy the contents of the temporary buffer to NVRAMRC; discard the contents of the temporary buffer. 

nvunalias alias

Delete the corresponding alias from NVRAMRC. 


Note -

Not all OpenBoot 2.x systems include the nvalias and nvunalias commands.


The editing commands shown in Table 3-5 are used within the NVRAM

Table 3-5 nvedit Keystroke Commands

Keystroke 

Description 

Control-B

Move backward one character. 

Control-C

Exit the editor and return to the OpenBoot command interpreter. The temporary buffer is preserved but is not written back to NVRAMRC. (Use nvstore afterwards to write back the temporary buffer.)

Control-F

Move forward one character. 

Control-K

If at the end of a line, join the next line to the current line (that is, delete the new line). 

Control-L

List all lines. 

Control-N

Move to the next line of the NVRAMRC editing buffer. 

Control-O

Insert a new line at the cursor position and stay on the current line. 

Control-P

Move to the previous line of the NVRAMRC editing buffer. 

Delete

Delete the previous character. 

Return

Insert a new line at the cursor position and advance to the next line. 

Other standard line editor commands are described in Chapter 4, Using Forth Tools.