i = 0;
if (grub_strcmp (args[0], "--append") == 0
- || grub_strcmp (args[0], "--removed") == 0)
+ || grub_strcmp (args[0], "--remove") == 0)
i++;
if (i == argc)
if (grub_strcmp (args[i], term->name) == 0)
break;
if (term == 0)
- FOR_DISABLED_TERM_INPUTS(term)
+ FOR_ACTIVE_TERM_INPUTS(term)
if (grub_strcmp (args[i], term->name) == 0)
break;
if (term == 0)
for (i = 0; i < argc; i++)
if (grub_strcmp (args[i], term->name) == 0)
break;
- if (i != argc)
+ if (i == argc)
{
if (!term->next && term == grub_term_inputs)
return grub_error (GRUB_ERR_BAD_ARGUMENT,
i = 0;
if (grub_strcmp (args[0], "--append") == 0
- || grub_strcmp (args[0], "--removed") == 0)
+ || grub_strcmp (args[0], "--remove") == 0)
i++;
if (i == argc)
if (grub_strcmp (args[i], term->name) == 0)
break;
if (term == 0)
- FOR_DISABLED_TERM_OUTPUTS(term)
+ FOR_ACTIVE_TERM_OUTPUTS(term)
if (grub_strcmp (args[i], term->name) == 0)
break;
if (term == 0)
}
return GRUB_ERR_NONE;
}
+
for (i = 0; i < argc; i++)
{
FOR_DISABLED_TERM_OUTPUTS(term)
for (i = 0; i < argc; i++)
if (grub_strcmp (args[i], term->name) == 0)
break;
- if (i != argc)
+ if (i == argc)
{
if (!term->next && term == grub_term_outputs)
return grub_error (GRUB_ERR_BAD_ARGUMENT,