hdt: Adding automatic mode
authorErwan Velu <erwan.velu@free.fr>
Tue, 3 Nov 2009 21:41:30 +0000 (22:41 +0100)
committerErwan Velu <erwan.velu@free.fr>
Tue, 3 Nov 2009 21:41:30 +0000 (22:41 +0100)
commit35c507ee84ae948f7b51ba3a8d5062178680d88c
treee8390bea29424a1bab76bf02889ce67fe7526a44
parentc9d07318d415f697a873e40f933834ff0e8e949b
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-pci.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h
com32/hdt/hdt-common.c
com32/hdt/hdt-common.h
com32/hdt/hdt.c