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.

autoboot_cmd.c 426B

12345678910111213141516171819202122232425
  1. #include <stdio.h>
  2. #include <gpxe/command.h>
  3. #include <usr/autoboot.h>
  4. static int autoboot_exec ( int argc, char **argv ) {
  5. if ( argc != 1 ) {
  6. printf ( "Usage:\n"
  7. " %s\n"
  8. "\n"
  9. "Attempts to boot the system\n",
  10. argv[0] );
  11. return 1;
  12. }
  13. autoboot();
  14. /* Can never return success by definition */
  15. return 1;
  16. }
  17. struct command autoboot_command __command = {
  18. .name = "autoboot",
  19. .exec = autoboot_exec,
  20. };