Print out the commands from /boot.config after parsing them so that they

output is sent to the correct console(s).

PR:		kern/66425
Submitted by:	Gavin Atkinson gavin at ury dot york dot ac dot uk
MFC after:	1 week
This commit is contained in:
jhb 2005-05-27 19:26:11 +00:00
parent 311d5e1182
commit 3c2fee4137
3 changed files with 3 additions and 3 deletions

View File

@ -243,9 +243,9 @@ main(void)
fsread(ino, cmd, sizeof(cmd));
if (*cmd) {
printf("%s: %s", PATH_CONFIG, cmd);
if (parse())
autoboot = 0;
printf("%s: %s", PATH_CONFIG, cmd);
/* Do not process this command twice */
*cmd = 0;
}

View File

@ -243,9 +243,9 @@ main(void)
fsread(ino, cmd, sizeof(cmd));
if (*cmd) {
printf("%s: %s", PATH_CONFIG, cmd);
if (parse())
autoboot = 0;
printf("%s: %s", PATH_CONFIG, cmd);
/* Do not process this command twice */
*cmd = 0;
}

View File

@ -124,8 +124,8 @@ boot(int drive)
readfile("boot.config", boot_config, BOOT_CONFIG_SIZE);
name = "/boot/loader";
if (boot_config[0] != '\0') {
printf("boot.config: %s", boot_config);
getbootdev(boot_config, &loadflags);
printf("boot.config: %s", boot_config);
if (openrd() != 0)
name = "kernel";
}