nvset — Set non-volatile parameters
nvset
{variable
} {value
}
Sets a non-volatile variable to a given value. The same
effect can be achieved by simply setting the shell variable
appropriately. The value
is usually free form
text for general options, for boolean values the values
“on” and “off” are used (true/false and
0/1 may also be used)
Example 14.1. Using the nvset command and shell method to alter a non-volatile variables
>nvshow fb.enable fb.enable = on >nvset fb.enable off >nvshow fb.enable fb.enable = off >fb.enable=on >nvshow fb.enable fb.enable = on >fb.enable=false >nvshow fb.enable fb.enable = off >nvset fb.enable true >nvshow fb.enable fb.enable = on >
Example 14.2. Using the nvset command
This example shows the setting of three variables, one of each type, and their effects on the variables as shown by nvshow. It should be noted that to set string values with spaces in them the values must be quoted appropriately.
>nvshow boot-cmd = boot-time = shell-hist = 0 auto-boot = off auto-shadow = off cons-write = cons-read = >nvset boot-cmd "boot (hd0)/vmlinuz root=/dev/hda1" >nvset boot-time 1 >nvset auto-boot on >nvshow boot-cmd = boot (hd0)/vmlinuz root=/dev/hda1 boot-time = 1 shell-hist = 0 auto-boot = on auto-shadow = off cons-write = cons-read = >