When an async operation dies, orphan its children.
[people/xl0/gpxe.git] / src / hci / commands / autoboot_cmd.c
1 #include <vsprintf.h>
2 #include <gpxe/command.h>
3 #include <usr/autoboot.h>
4
5 static int autoboot_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 autoboot_command __command = {
23         .name = "autoboot",
24         .exec = autoboot_exec,
25 };