http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Split the (quick hack) boot logic out from main.c to autoboot.c, add a
[people/xl0/gpxe.git]
/
src
/
hci
/
commands
/
boot_cmd.c
1
#include <vsprintf.h>
2
#include <gpxe/command.h>
3
#include <gpxe/autoboot.h>
4
5
static int boot_exec ( int argc, char **argv ) {
6
7
if ( argc != 1 ) {
8
printf ( "Usage: %s\n"
9
"Attempts to boot the system\n", argv[0] );
10
return 1;
11
}
12
13
autoboot();
14
15
return 0;
16
}
17
18
struct command boot_command __command = {
19
.name = "boot",
20
.exec = boot_exec,
21
};