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