hdt: Fixing verbose mode
authorErwan Velu <erwanaliasr1@gmail.com>
Tue, 25 Jan 2011 20:35:02 +0000 (21:35 +0100)
committerErwan Velu <erwanaliasr1@gmail.com>
Tue, 25 Jan 2011 20:35:02 +0000 (21:35 +0100)
HDT's images were lacking of a verbose mode. Quiet is the default so we
have to enforce the verbose if needed.

com32/hdt/floppy/hdt.cfg
com32/hdt/hdt.c

index 1350521..8eddb2c 100644 (file)
@@ -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
 
index 56848b0..2010438 100644 (file)
@@ -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);