Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. };