aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-25 21:35:02 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-25 21:35:02 +0100
commit460a711a8d3e0c71abe9edaf15cbb366d0f70c81 (patch)
tree04c2eac29c9f63844e688e6bb3faa78e7c781159 /com32/hdt
parent995558ff657a357b3e44a299525ff66dbb0300b3 (diff)
downloadsyslinux-460a711a8d3e0c71abe9edaf15cbb366d0f70c81.tar.gz
syslinux-460a711a8d3e0c71abe9edaf15cbb366d0f70c81.tar.xz
syslinux-460a711a8d3e0c71abe9edaf15cbb366d0f70c81.zip
hdt: Fixing verbose mode
HDT's images were lacking of a verbose mode. Quiet is the default so we have to enforce the verbose if needed.
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/floppy/hdt.cfg11
-rw-r--r--com32/hdt/hdt.c7
2 files changed, 13 insertions, 5 deletions
diff --git a/com32/hdt/floppy/hdt.cfg b/com32/hdt/floppy/hdt.cfg
index 1350521a..8eddb2c9 100644
--- a/com32/hdt/floppy/hdt.cfg
+++ b/com32/hdt/floppy/hdt.cfg
@@ -66,7 +66,16 @@ TEXT HELP
VESA mode is enabled
ENDTEXT
COM32 hdt.c32
-APPEND modules_pcimap=modules.pcimap modules_alias=modules.alias pciids=pci.ids vesa nomenu
+APPEND modules_pcimap=modules.pcimap modules_alias=modules.alias pciids=pci.ids vesa nomenu verbose
+
+LABEL verbose-text
+MENU LABEL CLI (Text mode & Verbose)
+TEXT HELP
+ Starts HDT using the Command Line Interface (CLI)
+ VESA mode is disabled
+ENDTEXT
+COM32 hdt.c32
+APPEND modules_pcimap=modules.pcimap modules_alias=modules.alias pciids=pci.ids verbose nomenu
MENU SEPARATOR
diff --git a/com32/hdt/hdt.c b/com32/hdt/hdt.c
index 56848b07..20104382 100644
--- a/com32/hdt/hdt.c
+++ b/com32/hdt/hdt.c
@@ -48,12 +48,14 @@ int max_console_lines = MAX_CLI_LINES;
int main(const int argc, const char *argv[])
{
char version_string[256];
- const char *arg;
struct s_hardware hardware;
snprintf(version_string, sizeof version_string, "%s %s (%s)",
PRODUCT_NAME, VERSION, CODENAME);
+ /* Opening the Syslinux console */
+ init_console(&hardware);
+
/* Cleaning structures */
init_hardware(&hardware);
@@ -63,9 +65,6 @@ int main(const int argc, const char *argv[])
/* Detecting parameters */
detect_parameters(argc, argv, &hardware);
- /* Opening the Syslinux console */
- init_console(&hardware);
-
/* Detect hardware */
detect_hardware(&hardware);