Exemple #1
0
static int 
bootit(const char *filename, int howto)
{
	if (exec_netbsd(filename, 0, howto, 0, alldone) < 0)
		printf("boot: %s\n", strerror(errno));
	else
		printf("boot returned\n");
	return (-1);
}
Exemple #2
0
static void
bootit(const char *filename, int howto)
{
    if (howto & AB_VERBOSE)
        printf("booting %s (howto 0x%x)\n", sprint_bootsel(filename),
               howto);

    if (exec_netbsd(filename, 0, howto, boot_biosdev < 0x80, clearit) < 0)
        printf("boot: %s: %s\n", sprint_bootsel(filename),
               strerror(errno));
    else
        printf("boot returned\n");
}
Exemple #3
0
void
bootit(const char *filename, int howto, int tell)
{

	if (tell) {
		printf("booting %s", sprint_bootsel(filename));
		if (howto)
			printf(" (howto 0x%x)", howto);
		printf("\n");
	}

	if (exec_netbsd(filename, 0, howto, boot_biosdev < 0x80, clearit) < 0)
		printf("boot: %s: %s\n", sprint_bootsel(filename),
		       strerror(errno));
	else
		printf("boot returned\n");
}
Exemple #4
0
void
bootit(const char *filename, int howto, int tell)
{

	if (tell) {
		printf("booting %s", sprint_bootsel(filename));
		if (howto)
			printf(" (howto 0x%x)", howto);
		printf("\n");
	}

	if (exec_netbsd(filename, howto) < 0) {
		printf("boot: %s: %s\n", sprint_bootsel(filename),
		       strerror(errno));
	} else {
		printf("boot returned\n");
	}
}