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