44 |
|
|
45 |
|
|
46 |
|
|
47 |
#ifdef GRUB_UTIL |
GRUB_MOD_INIT(halt) |
|
void |
|
|
grub_halt_init (void) |
|
|
{ |
|
|
grub_register_command ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH, |
|
|
"halt [OPTIONS...]", |
|
|
"Halt the system, if possible using APM", options); |
|
|
} |
|
|
|
|
|
void |
|
|
grub_halt_fini (void) |
|
|
{ |
|
|
grub_unregister_command ("halt"); |
|
|
} |
|
|
#else /* ! GRUB_UTIL */ |
|
|
GRUB_MOD_INIT |
|
48 |
{ |
{ |
49 |
(void)mod; /* To stop warning. */ |
(void)mod; /* To stop warning. */ |
50 |
grub_register_command ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH, |
grub_register_command ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH, |
52 |
"Halt the system, if possible using APM", options); |
"Halt the system, if possible using APM", options); |
53 |
} |
} |
54 |
|
|
55 |
GRUB_MOD_FINI |
GRUB_MOD_FINI(halt) |
56 |
{ |
{ |
57 |
grub_unregister_command ("halt"); |
grub_unregister_command ("halt"); |
58 |
} |
} |
|
#endif /* ! GRUB_UTIL */ |
|