~ubuntu-branches/ubuntu/wily/grub2/wily-proposed

« back to all changes in this revision

Viewing changes to kern/corecmd.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Zielcke, Robert Millan, Felix Zielcke
  • Date: 2010-01-26 19:26:25 UTC
  • mfrom: (1.13.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126192625-coq6czap2ofjollf
Tags: 1.98~20100126-1
* New Bazaar snapshot.
  - Includes mipsel-yeeloong port.

[ Robert Millan ]
* config.in: Lower priority of grub2/linux_cmdline_default.

[ Felix Zielcke ]
* Drop `CFLAGS=-O0' workaround on powerpc. Should be fixed correctly now.
* Ship grub-bin2h and grub-script-check in grub-common.
* Terminate NEWS.Debian with a blank line like lintian would suggest
  if that check would be working correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
  return 0;
74
74
}
75
75
 
76
 
static grub_err_t
77
 
grub_core_cmd_export (struct grub_command *cmd __attribute__ ((unused)),
78
 
                      int argc, char **args)
79
 
{
80
 
  if (argc < 1)
81
 
    return grub_error (GRUB_ERR_BAD_ARGUMENT,
82
 
                       "no environment variable specified");
83
 
 
84
 
  grub_env_export (args[0]);
85
 
  return 0;
86
 
}
87
 
 
88
76
/* insmod MODULE */
89
77
static grub_err_t
90
78
grub_core_cmd_insmod (struct grub_command *cmd __attribute__ ((unused)),
193
181
                         "[ENVVAR=VALUE]", "Set an environment variable.");
194
182
  grub_register_command ("unset", grub_core_cmd_unset,
195
183
                         "ENVVAR", "Remove an environment variable.");
196
 
  grub_register_command ("export", grub_core_cmd_export,
197
 
                         "ENVVAR", "Export a variable.");
198
184
  grub_register_command ("ls", grub_core_cmd_ls,
199
185
                         "[ARG]", "List devices or files.");
200
186
  grub_register_command ("insmod", grub_core_cmd_insmod,