version 1.38.2.2, 2009/03/03 18:29:00 |
version 1.38.2.3, 2009/04/28 07:34:13 |
Line 220 sprint_bootsel(const char *filename) |
|
Line 220 sprint_bootsel(const char *filename) |
|
return "(invalid)"; |
return "(invalid)"; |
} |
} |
|
|
|
static void |
|
clearit(void) |
|
{ |
|
|
|
if (bootconf.clear) |
|
clear_pc_screen(); |
|
} |
|
|
void |
void |
bootit(const char *filename, int howto, int tell) |
bootit(const char *filename, int howto, int tell) |
{ |
{ |
Line 231 bootit(const char *filename, int howto, |
|
Line 239 bootit(const char *filename, int howto, |
|
printf("\n"); |
printf("\n"); |
} |
} |
|
|
if (exec_netbsd(filename, 0, howto, boot_biosdev < 0x80) < 0) |
if (exec_netbsd(filename, 0, howto, boot_biosdev < 0x80, clearit) < 0) |
printf("boot: %s: %s\n", sprint_bootsel(filename), |
printf("boot: %s: %s\n", sprint_bootsel(filename), |
strerror(errno)); |
strerror(errno)); |
else |
else |
Line 241 bootit(const char *filename, int howto, |
|
Line 249 bootit(const char *filename, int howto, |
|
void |
void |
print_banner(void) |
print_banner(void) |
{ |
{ |
if (bootconf.clear) |
|
clear_pc_screen(); |
|
|
|
|
clearit(); |
#ifndef SMALL |
#ifndef SMALL |
int n; |
int n; |
if (bootconf.banner[0]) { |
if (bootconf.banner[0]) { |
Line 402 command_boot(char *arg) |
|
Line 409 command_boot(char *arg) |
|
int howto; |
int howto; |
|
|
if (parseboot(arg, &filename, &howto)) |
if (parseboot(arg, &filename, &howto)) |
bootit(filename, howto, 1); |
bootit(filename, howto, (howto & AB_VERBOSE) != 0); |
} |
} |
|
|
void |
void |