#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 |
| 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 }
Initial value:
{
.name = "autoboot",
.exec = autoboot_exec,
}
Definition at line 24 of file autoboot_cmd.c.
1.5.7.1