Move header file for usr/autoboot.c to include/usr
[people/dverkamp/gpxe.git] / src / hci / commands / boot_cmd.c
1 #include <vsprintf.h>
2 #include <gpxe/command.h>
3 #include <usr/autoboot.h>
4
5 static int boot_exec ( int argc, char **argv ) {
6
7         if ( argc != 1 ) {
8                 printf ( "Usage:\n"
9                          "  %s\n"
10                          "\n"
11                          "Attempts to boot the system\n",
12                          argv[0] );
13                 return 1;
14         }
15
16         autoboot();
17
18         /* Can never return success by definition */
19         return 1;
20 }
21
22 struct command boot_command __command = {
23         .name = "boot",
24         .exec = boot_exec,
25 };