Blame SOURCES/0009-grub-core-lib-legacy_parse.c-Support-clear-and-testl.patch

f96e0b
From 134e4df1335b0498684d093b55332f87c2e8a301 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Mon, 2 Jul 2012 11:31:31 +0200
f96e0b
Subject: [PATCH 009/482] 	* grub-core/lib/legacy_parse.c: Support clear
f96e0b
 and testload.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                    |  4 ++++
f96e0b
 grub-core/lib/legacy_parse.c | 14 +++++++++++++-
f96e0b
 2 files changed, 17 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 5f73c88..e606116 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,9 @@
f96e0b
 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* grub-core/lib/legacy_parse.c: Support clear and testload.
f96e0b
+
f96e0b
+2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	* grub-core/term/efi/serial.c: Support 1.5 stop bits.
f96e0b
 
f96e0b
 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
diff --git a/grub-core/lib/legacy_parse.c b/grub-core/lib/legacy_parse.c
f96e0b
index 14768b8..ddfaec4 100644
f96e0b
--- a/grub-core/lib/legacy_parse.c
f96e0b
+++ b/grub-core/lib/legacy_parse.c
f96e0b
@@ -65,6 +65,7 @@ struct legacy_command
f96e0b
  */
f96e0b
 static struct legacy_command legacy_commands[] =
f96e0b
   {
f96e0b
+    /* FIXME: background unsupported.  */
f96e0b
     {"blocklist", "blocklist '%s'\n", NULL, 0, 1, {TYPE_FILE}, 0, "FILE",
f96e0b
      "Print the blocklist notation of the file FILE."},
f96e0b
     {"boot", "boot\n", NULL, 0, 0, {}, 0, 0,
f96e0b
@@ -82,6 +83,8 @@ static struct legacy_command legacy_commands[] =
f96e0b
      2, {TYPE_FORCE_OPTION, TYPE_FILE}, 0, "[--force] FILE",
f96e0b
      "Load the chain-loader FILE. If --force is specified, then load it"
f96e0b
      " forcibly, whether the boot loader signature is present or not."},
f96e0b
+    {"clear", "clear\n", NULL, 0, 0, {}, 0, 0,
f96e0b
+     "Clear the screen."},
f96e0b
     {"cmp", "cmp '%s' '%s'\n", NULL, 0,
f96e0b
      2, {TYPE_FILE, TYPE_FILE}, FLAG_IGNORE_REST, "FILE1 FILE2",
f96e0b
      "Compare the file FILE1 with the FILE2 and inform the different values"
f96e0b
@@ -125,6 +128,7 @@ static struct legacy_command legacy_commands[] =
f96e0b
     {"displaymem", "lsmmap\n", NULL, 0, 0, {}, 0, 0, 
f96e0b
      "Display what GRUB thinks the system address space map of the"
f96e0b
      " machine is, including all regions of physical RAM installed."},
f96e0b
+    /* FIXME: device and efimap unsupported.  */
f96e0b
     /* NOTE: embed unsupported.  */
f96e0b
     {"fallback", "set fallback='%s'\n", NULL, 0,
f96e0b
      1, {TYPE_VERBATIM}, 0, "NUM...",
f96e0b
@@ -136,6 +140,8 @@ static struct legacy_command legacy_commands[] =
f96e0b
     {"find", "search -f '%s'\n", NULL, 0, 1, {TYPE_FILE}, 0, "FILENAME",
f96e0b
      "Search for the filename FILENAME in all of partitions and print the list of"
f96e0b
      " the devices which contain the file."},
f96e0b
+    /* FIXME: findiso unsupported.  */
f96e0b
+    /* FIXME: foreground unsupported.  */
f96e0b
     /* FIXME: fstest unsupported.  */
f96e0b
     /* NOTE: The obsolete C/H/S geometry isn't shown anymore.  */
f96e0b
     {"geometry", "insmod regexp; ls -l (%s*)\n", NULL, 0, 1, {TYPE_VERBATIM}, 0, "DRIVE",
f96e0b
@@ -243,6 +249,7 @@ static struct legacy_command legacy_commands[] =
f96e0b
     {"pause", "echo %s; if ! sleep -i 60; then return; fi\n", NULL, 0, 1,
f96e0b
      {TYPE_REST_VERBATIM}, 0,
f96e0b
      "[MESSAGE ...]", "Print MESSAGE, then wait until a key is pressed."},
f96e0b
+    /* FIXME: quit unsupported.  */
f96e0b
     /* FIXME: rarp unsupported.  */
f96e0b
     {"read", "read_dword %s\n", NULL, 0, 1, {TYPE_INT}, 0, "ADDR",
f96e0b
      "Read a 32-bit value from memory at address ADDR and"
f96e0b
@@ -288,11 +295,14 @@ static struct legacy_command legacy_commands[] =
f96e0b
      " STOP is the length of stop bit(s). The option --device can be used only"
f96e0b
      " in the grub shell, which specifies the file name of a tty device. The"
f96e0b
      " default values are COM1, 9600, 8N1."},
f96e0b
+    /* FIXME: silent unsupported.  */
f96e0b
+    /* FIXME: splashimage unsupported.  */
f96e0b
     /* FIXME: setkey unsupported.  */    /* NUL_TERMINATE */
f96e0b
     /* NOTE: setup unsupported.  */
f96e0b
     /* FIXME: --no-echo, --no-edit unsupported.  */
f96e0b
     /* NOTE: both terminals are activated so --silent and --timeout
f96e0b
        are useless.  */
f96e0b
+    /* FIXME: graphics unsupported.  */
f96e0b
     {"terminal", NULL, NULL, 0, 0, {}, FLAG_TERMINAL | FLAG_IGNORE_REST,
f96e0b
      "[--dumb] [--no-echo] [--no-edit] [--timeout=SECS] [--lines=LINES] "
f96e0b
      "[--silent] [console] [serial] [hercules]",
f96e0b
@@ -307,7 +317,7 @@ static struct legacy_command legacy_commands[] =
f96e0b
      " seconds. The option --lines specifies the maximum number of lines."
f96e0b
      " The option --silent is used to suppress messages."},
f96e0b
     /* FIXME: terminfo unsupported.  */    /* NUL_TERMINATE */
f96e0b
-    {"testload", "cat '%s'\n", NULL, 0, 1, {TYPE_FILE}, 0, "FILE",
f96e0b
+    {"testload", "testload '%s'\n", NULL, 0, 1, {TYPE_FILE}, 0, "FILE",
f96e0b
      "Read the entire contents of FILE in several different ways and"
f96e0b
      " compares them, to test the filesystem code. "
f96e0b
      " If this test succeeds, then a good next"
f96e0b
@@ -334,6 +344,8 @@ static struct legacy_command legacy_commands[] =
f96e0b
      " the information about only the mode."},
f96e0b
     {"vbeprobe", "insmod vbe; videoinfo\n", NULL, 0, 0, {},
f96e0b
      FLAG_FALLBACK, NULL, NULL}
f96e0b
+    /* FIXME: verbose unsupported.  */
f96e0b
+    /* FIXME: version unsupported.  */
f96e0b
   };
f96e0b
 
f96e0b
 char *
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b