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:
John Baldwin 2005-05-27 19:26:11 +00:00
parent d0cad55da8
commit 5b09b18204
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146696
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";
}