autoboot_cmd.c File Reference

#include <stdio.h>
#include <gpxe/command.h>
#include <usr/autoboot.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static int autoboot_exec (int argc, char **argv)

Variables

struct command autoboot_command __command


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

static int autoboot_exec ( int  argc,
char **  argv 
) [static]

Definition at line 7 of file autoboot_cmd.c.

References autoboot(), and printf().

00007                                                    {
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 }


Variable Documentation

struct command autoboot_command __command

Initial value:

 {
        .name = "autoboot",
        .exec = autoboot_exec,
}

Definition at line 24 of file autoboot_cmd.c.


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