diff options
Diffstat (limited to 'src/hci/commands/boot_cmd.c')
-rw-r--r-- | src/hci/commands/boot_cmd.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/hci/commands/boot_cmd.c b/src/hci/commands/boot_cmd.c new file mode 100644 index 00000000..0681ec54 --- /dev/null +++ b/src/hci/commands/boot_cmd.c @@ -0,0 +1,21 @@ +#include <vsprintf.h> +#include <gpxe/command.h> +#include <gpxe/autoboot.h> + +static int boot_exec ( int argc, char **argv ) { + + if ( argc != 1 ) { + printf ( "Usage: %s\n" + "Attempts to boot the system\n", argv[0] ); + return 1; + } + + autoboot(); + + return 0; +} + +struct command boot_command __command = { + .name = "boot", + .exec = boot_exec, +}; |