00001 #include <stdio.h> 00002 #include <gpxe/command.h> 00003 #include <usr/autoboot.h> 00004 00005 FILE_LICENCE ( GPL2_OR_LATER ); 00006 00007 static int autoboot_exec ( int argc, char **argv ) { 00008 00009 if ( argc != 1 ) { 00010 printf ( "Usage:\n" 00011 " %s\n" 00012 "\n" 00013 "Attempts to boot the system\n", 00014 argv[0] ); 00015 return 1; 00016 } 00017 00018 autoboot(); 00019 00020 /* Can never return success by definition */ 00021 return 1; 00022 } 00023 00024 struct command autoboot_command __command = { 00025 .name = "autoboot", 00026 .exec = autoboot_exec, 00027 };
1.5.7.1