aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/hci/commands/image_cmd.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-03-11 19:46:35 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-03-11 19:46:35 -0700
commitd16e5e8e8ea526326ed6f8880464399624bfe171 (patch)
tree9d1eb354f74532c219d31607e28840c4ebde3103 /gpxe/src/hci/commands/image_cmd.c
parent43224f02c231ed97a15d8300eaaf69ad8118d222 (diff)
downloadsyslinux-elf-syslinux-3.74-pre3.tar.gz
syslinux-elf-syslinux-3.74-pre3.tar.xz
syslinux-elf-syslinux-3.74-pre3.zip
Update gPXE to version 0.9.7syslinux-3.74-pre3
Diffstat (limited to 'gpxe/src/hci/commands/image_cmd.c')
-rw-r--r--gpxe/src/hci/commands/image_cmd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gpxe/src/hci/commands/image_cmd.c b/gpxe/src/hci/commands/image_cmd.c
index d1a38c47..6d8b5908 100644
--- a/gpxe/src/hci/commands/image_cmd.c
+++ b/gpxe/src/hci/commands/image_cmd.c
@@ -222,6 +222,22 @@ static int kernel_exec ( int argc, char **argv ) {
}
/**
+ * The "chain" command
+ *
+ * @v argc Argument count
+ * @v argv Argument list
+ * @ret rc Exit code
+ */
+static int chain_exec ( int argc, char **argv) {
+ int rc;
+
+ if ( ( rc = imgfetch_core_exec ( NULL, IMG_EXEC, argc, argv ) ) != 0 )
+ return rc;
+
+ return 0;
+}
+
+/**
* "imgload" command syntax message
*
* @v argv Argument list
@@ -547,6 +563,10 @@ struct command image_commands[] __command = {
.exec = kernel_exec,
},
{
+ .name = "chain",
+ .exec = chain_exec,
+ },
+ {
.name = "imgload",
.exec = imgload_exec,
},