diff options
author | Erwan Velu <erwanaliasr1@gmail.com> | 2011-03-18 21:49:38 +0100 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2011-03-18 21:49:38 +0100 |
commit | 17202942967982adb3679bad68ea93538ba0d867 (patch) | |
tree | c4743824a79cfb5bd1af88536907c98ce2bc5f8c /com32/hdt/hdt-cli-hdt.c | |
parent | 5b4b737c22587fb1879efab9d93630afcd835d62 (diff) | |
download | syslinux-17202942967982adb3679bad68ea93538ba0d867.tar.gz |
hdt: Adding preliminary dump support
This commit add the basics for doing a dump command.
Diffstat (limited to 'com32/hdt/hdt-cli-hdt.c')
-rw-r--r-- | com32/hdt/hdt-cli-hdt.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c index 65068232..e9752612 100644 --- a/com32/hdt/hdt-cli-hdt.c +++ b/com32/hdt/hdt-cli-hdt.c @@ -250,6 +250,15 @@ static void do_reboot(int argc __unused, char **argv __unused, syslinux_reboot(1); } +/** + * do_dump - dump info + **/ +static void do_dump(int argc __unused, char **argv __unused, + struct s_hardware *hardware) +{ + dump(hardware); +} + /* Default hdt mode */ struct cli_callback_descr list_hdt_default_modules[] = { { @@ -277,6 +286,10 @@ struct cli_callback_descr list_hdt_default_modules[] = { .exec = print_history, }, { + .name = CLI_DUMP, + .exec = do_dump, + }, + { .name = NULL, .exec = NULL}, }; |