Blame SOURCES/0094-Make-reset-an-alias-for-the-reboot-command.patch

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