david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/hci/commands/autoboot_cmd.c

28 lines
459 B
C
Raw Normal View History

2007-01-19 02:13:12 +01:00
#include <stdio.h>
#include <gpxe/command.h>
#include <usr/autoboot.h>
FILE_LICENCE ( GPL2_OR_LATER );
2007-01-14 01:06:23 +01:00
static int autoboot_exec ( int argc, char **argv ) {
if ( argc != 1 ) {
printf ( "Usage:\n"
" %s\n"
"\n"
"Attempts to boot the system\n",
argv[0] );
return 1;
}
autoboot();
/* Can never return success by definition */
return 1;
}
2007-01-14 01:06:23 +01:00
struct command autoboot_command __command = {
.name = "autoboot",
.exec = autoboot_exec,
};