autoboot_cmd.c

Go to the documentation of this file.
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 };

Generated on Tue Apr 6 20:01:06 2010 for gPXE by  doxygen 1.5.7.1