Edits the NVRAMRC script to create a persistent device alias, as
follows:
Creates this command line in the NVRAMRC script:
devalias
alias-name
device-specifier
If the NVRAMRC script already contains a
devalias line with the same alias name,
deletes that entry and replaces it with the new entry at the same
location in the NVRAMRC script. Otherwise, places the new entry at
the beginning of the script.
If there is insufficient space in the NVRAMRC script for the new
devalias command, displays a message to that
effect and aborts without modifying the script.
If the NVRAMRC script was successfully modified, executes the new
devalias command immediately, creating a new
memory-resident alias.
If the NVRAMRC script is currently being edited (that is, if
nvedit has been executed, but has not been
completed with either nvstore or
nvquit), aborts with an error message before
taking any other action.
If the NVRAMRC script was successfully modified, but
use-nvramrc? is false,
sets use-nvramrc? to
true.
Syntax:
ok
nvalias
alias-name
/full/pathname
<eol>
|