|
|
5593c8 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
5593c8 |
From: Peter Jones <pjones@redhat.com>
|
|
|
5593c8 |
Date: Fri, 31 Aug 2018 16:42:03 -0400
|
|
|
5593c8 |
Subject: [PATCH] Make "reset" an alias for the "reboot" command.
|
|
|
5593c8 |
|
|
|
5593c8 |
I'm really tired of half the tools I get to use having one and the other half
|
|
|
5593c8 |
having the other.
|
|
|
5593c8 |
|
|
|
5593c8 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
5593c8 |
---
|
|
|
5593c8 |
grub-core/commands/reboot.c | 11 +++++++----
|
|
|
5593c8 |
1 file changed, 7 insertions(+), 4 deletions(-)
|
|
|
5593c8 |
|
|
|
5593c8 |
diff --git a/grub-core/commands/reboot.c b/grub-core/commands/reboot.c
|
|
|
fd0330 |
index 46d364c99a..f5cc228363 100644
|
|
|
5593c8 |
--- a/grub-core/commands/reboot.c
|
|
|
5593c8 |
+++ b/grub-core/commands/reboot.c
|
|
|
5593c8 |
@@ -32,15 +32,18 @@ grub_cmd_reboot (grub_command_t cmd __attribute__ ((unused)),
|
|
|
5593c8 |
grub_reboot ();
|
|
|
5593c8 |
}
|
|
|
5593c8 |
|
|
|
5593c8 |
-static grub_command_t cmd;
|
|
|
5593c8 |
+static grub_command_t reboot_cmd, reset_cmd;
|
|
|
5593c8 |
|
|
|
5593c8 |
GRUB_MOD_INIT(reboot)
|
|
|
5593c8 |
{
|
|
|
5593c8 |
- cmd = grub_register_command ("reboot", grub_cmd_reboot,
|
|
|
5593c8 |
- 0, N_("Reboot the computer."));
|
|
|
5593c8 |
+ reboot_cmd = grub_register_command ("reboot", grub_cmd_reboot,
|
|
|
5593c8 |
+ 0, N_("Reboot the computer."));
|
|
|
5593c8 |
+ reset_cmd = grub_register_command ("reset", grub_cmd_reboot,
|
|
|
5593c8 |
+ 0, N_("Reboot the computer."));
|
|
|
5593c8 |
}
|
|
|
5593c8 |
|
|
|
5593c8 |
GRUB_MOD_FINI(reboot)
|
|
|
5593c8 |
{
|
|
|
5593c8 |
- grub_unregister_command (cmd);
|
|
|
5593c8 |
+ grub_unregister_command (reboot_cmd);
|
|
|
5593c8 |
+ grub_unregister_command (reset_cmd);
|
|
|
5593c8 |
}
|