aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt.c')
-rw-r--r--com32/hdt/hdt.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/com32/hdt/hdt.c b/com32/hdt/hdt.c
index ee3e7cf3..00c5439d 100644
--- a/com32/hdt/hdt.c
+++ b/com32/hdt/hdt.c
@@ -37,7 +37,6 @@
#include <consoles.h>
#include "hdt.h"
#include "hdt-menu.h"
-#include "hdt-cli.h"
#include "hdt-common.h"
int display_line_nb = 0;
@@ -68,17 +67,14 @@ int main(const int argc, const char *argv[])
printf("\033[1;1H");
printf("%s\n", version_string);
-
- if ((arg = find_argument(argv + 1, "nomenu")))
- start_cli_mode(&hardware);
+ if ((arg = find_argument(argv + 1, "nomenu")) || (find_argument(argv+1,"auto")))
+ start_cli_mode(&hardware);
else {
- int return_code = start_menu_mode(&hardware, version_string);
-
- if (return_code == HDT_RETURN_TO_CLI)
- start_cli_mode(&hardware);
- else
- return return_code;
+ int return_code = start_menu_mode(&hardware, version_string);
+ if (return_code == HDT_RETURN_TO_CLI)
+ start_cli_mode(&hardware);
+ else
+ return return_code;
}
-
return 0;
}