diff options
author | Michael Brown | 2010-11-22 22:11:03 +0100 |
---|---|---|
committer | Michael Brown | 2010-11-22 22:14:11 +0100 |
commit | a180c7526caeb849d04d5f83ac55226920d26b54 (patch) | |
tree | 032d8edbafb2eec491e33a29a5aaa5bd44182194 | |
parent | [autoboot] Merge "netboot" command into "autoboot" (diff) | |
download | ipxe-a180c7526caeb849d04d5f83ac55226920d26b54.tar.gz ipxe-a180c7526caeb849d04d5f83ac55226920d26b54.tar.xz ipxe-a180c7526caeb849d04d5f83ac55226920d26b54.zip |
[settings] Allow "set" command to take an empty value
Allow "set <variable>" to be used to set the variable to an empty
value, if permitted by the setting type. Note that some settings
backends do not differentiate between an empty value and a
non-existent value, so this may or may not be equivalent to "clear
<variable>".
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/hci/commands/nvo_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/commands/nvo_cmd.c b/src/hci/commands/nvo_cmd.c index 87bdd8a1..3513c8de 100644 --- a/src/hci/commands/nvo_cmd.c +++ b/src/hci/commands/nvo_cmd.c @@ -87,7 +87,7 @@ static struct option_descriptor set_opts[] = {}; /** "set" command descriptor */ static struct command_descriptor set_cmd = - COMMAND_DESC ( struct set_options, set_opts, 2, MAX_ARGUMENTS, + COMMAND_DESC ( struct set_options, set_opts, 1, MAX_ARGUMENTS, "<setting> <value>", "" ); /** |