mirror of
https://github.com/troglobit/finit.git
synced 2026-10-11 17:02:42 +07:00
Fix issue with "Formatting of boot text changes in the middle of the boot."
This commit adds a line: "Loading kernel modules ..." before increasing indentation level of module loading messages. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -60,6 +60,7 @@ static char *build_cmd(char *cmd, char *line, int len)
|
||||
void parse_finit_conf(char *file)
|
||||
{
|
||||
FILE *fp;
|
||||
int modfirst = 1;
|
||||
char line[LINE_SIZE];
|
||||
char cmd[CMD_SIZE];
|
||||
|
||||
@@ -105,6 +106,10 @@ void parse_finit_conf(char *file)
|
||||
continue;
|
||||
}
|
||||
if (MATCH_CMD(line, "module ", x)) {
|
||||
if (modfirst) {
|
||||
echo("Loading kernel modules ...");
|
||||
modfirst = 0;
|
||||
}
|
||||
strcpy(cmd, "/sbin/modprobe ");
|
||||
build_cmd(cmd, x, CMD_SIZE);
|
||||
run_interactive(cmd, " Loading module %s", x);
|
||||
|
||||
Reference in New Issue
Block a user