source: bootcd/isolinux/syslinux-6.03/gpxe/src/hci/commands/autoboot_cmd.c

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 459 bytes
Line 
1#include <stdio.h>
2#include <gpxe/command.h>
3#include <usr/autoboot.h>
4
5FILE_LICENCE ( GPL2_OR_LATER );
6
7static int autoboot_exec ( int argc, char **argv ) {
8
9        if ( argc != 1 ) {
10                printf ( "Usage:\n"
11                         "  %s\n"
12                         "\n"
13                         "Attempts to boot the system\n",
14                         argv[0] );
15                return 1;
16        }
17
18        autoboot();
19
20        /* Can never return success by definition */
21        return 1;
22}
23
24struct command autoboot_command __command = {
25        .name = "autoboot",
26        .exec = autoboot_exec,
27};
Note: See TracBrowser for help on using the repository browser.