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