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:
parent
311d5e1182
commit
3c2fee4137
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user