1 |
/* cmd.c - command to cmp an operating system */ |
/* cmd.c - command to cmp an operating system */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 2003 Free Software Foundation, Inc. |
* Copyright (C) 2003,2005 Free Software Foundation, Inc. |
5 |
* |
* |
6 |
* GRUB is free software; you can redistribute it and/or modify |
* GRUB is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
106 |
grub_cmp_init (void) |
grub_cmp_init (void) |
107 |
{ |
{ |
108 |
grub_register_command ("cmp", grub_cmd_cmp, GRUB_COMMAND_FLAG_BOTH, |
grub_register_command ("cmp", grub_cmd_cmp, GRUB_COMMAND_FLAG_BOTH, |
109 |
"cmp FILE1 FILE2", "Compare two files", 0); |
"cmp FILE1 FILE2", "Compare two files.", 0); |
110 |
} |
} |
111 |
|
|
112 |
void |
void |
117 |
#else /* ! GRUB_UTIL */ |
#else /* ! GRUB_UTIL */ |
118 |
GRUB_MOD_INIT |
GRUB_MOD_INIT |
119 |
{ |
{ |
120 |
(void)mod; /* To stop warning. */ |
(void) mod; /* To stop warning. */ |
121 |
grub_register_command ("cmp", grub_cmd_cmp, GRUB_COMMAND_FLAG_BOTH, |
grub_register_command ("cmp", grub_cmd_cmp, GRUB_COMMAND_FLAG_BOTH, |
122 |
"cmp FILE1 FILE2", "Compare two files", 0); |
"cmp FILE1 FILE2", "Compare two files.", 0); |
123 |
} |
} |
124 |
|
|
125 |
GRUB_MOD_FINI |
GRUB_MOD_FINI |