You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

boot_cmd.c 345B

123456789101112131415161718192021
  1. #include <vsprintf.h>
  2. #include <gpxe/command.h>
  3. #include <gpxe/autoboot.h>
  4. static int boot_exec ( int argc, char **argv ) {
  5. if ( argc != 1 ) {
  6. printf ( "Usage: %s\n"
  7. "Attempts to boot the system\n", argv[0] );
  8. return 1;
  9. }
  10. autoboot();
  11. return 0;
  12. }
  13. struct command boot_command __command = {
  14. .name = "boot",
  15. .exec = boot_exec,
  16. };