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 459B

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