From 35c507ee84ae948f7b51ba3a8d5062178680d88c Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Tue, 3 Nov 2009 22:41:30 +0100 Subject: hdt: Adding automatic mode Impact: HDT can be controlled via the cmdline When the auto= parameter is set, HDT execute a set of commands and return to the cli after. i.e auto='show summary; show pci' will show the summary then the pci and return to the cli. Note that the auto= feature, requires a the "'" char to define the complete set of commands and the ";" char to separate commands. Some more examples: auto='show syslinux; exit' -> this will show the syslinux release and then exit to return to the bootloader auto='show summary; reboot' -> this will show the summary and then reboot the computer --- com32/hdt/hdt-cli.h | 1 + 1 file changed, 1 insertion(+) (limited to 'com32/hdt/hdt-cli.h') diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index aa27ac7d..3684fa40 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -153,6 +153,7 @@ cli_mode_t mode_s_to_mode_t(char *name); void set_mode(cli_mode_t mode, struct s_hardware *hardware); void start_cli_mode(struct s_hardware *hardware); +void start_auto_mode(struct s_hardware *hardware); void main_show(char *item, struct s_hardware *hardware); // DMI STUFF -- cgit v1.2.1