aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 51f68048..adfbf944 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -644,10 +644,25 @@ void show_main_help(struct s_hardware *hardware)
more_printf(" %s\n", CLI_KERNEL);
more_printf(" %s\n", CLI_SYSLINUX);
more_printf(" %s\n", CLI_VESA);
+ more_printf(" %s\n", CLI_HDT);
if (hardware->sv->filesystem == SYSLINUX_FS_PXELINUX)
more_printf(" %s\n", CLI_PXE);
}
+void main_show_hdt(struct s_hardware *hardware)
+{
+ more_printf("HDT\n");
+ more_printf(" Product : %s\n", PRODUCT_NAME);
+ more_printf(" Version : %s\n", VERSION);
+ more_printf(" Author : %s\n", AUTHOR);
+ more_printf(" Contact : %s\n", CONTACT);
+ char *contributors[NB_CONTRIBUTORS] = CONTRIBUTORS;
+ for (int c=0; c<NB_CONTRIBUTORS; c++) {
+ more_printf(" Contributor : %s\n", contributors[c]);
+ }
+}
+
+
void main_show(char *item, struct s_hardware *hardware)
{
if (!strncmp(item, CLI_SUMMARY, sizeof(CLI_SUMMARY))) {
@@ -682,5 +697,9 @@ void main_show(char *item, struct s_hardware *hardware)
main_show_vesa(hardware);
return;
}
+ if (!strncmp(item, CLI_HDT, sizeof(CLI_HDT))) {
+ main_show_hdt(hardware);
+ return;
+ }
show_main_help(hardware);
}