mirror of
https://github.com/troglobit/finit.git
synced 2026-11-19 19:40:50 +00: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:
1 parent
5d04a72a61
commit
011b73ba39
1 file changed
+5
@@ -60,6 +60,7 @@ static char *build_cmd(char *cmd, char *line, int len)
|
|||||||
void parse_finit_conf(char *file)
|
void parse_finit_conf(char *file)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
int modfirst = 1;
|
||||||
char line[LINE_SIZE];
|
char line[LINE_SIZE];
|
||||||
char cmd[CMD_SIZE];
|
char cmd[CMD_SIZE];
|
||||||
|
|
||||||
@@ -105,6 +106,10 @@ void parse_finit_conf(char *file)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (MATCH_CMD(line, "module ", x)) {
|
if (MATCH_CMD(line, "module ", x)) {
|
||||||
|
if (modfirst) {
|
||||||
|
echo("Loading kernel modules ...");
|
||||||
|
modfirst = 0;
|
||||||
|
}
|
||||||
strcpy(cmd, "/sbin/modprobe ");
|
strcpy(cmd, "/sbin/modprobe ");
|
||||||
build_cmd(cmd, x, CMD_SIZE);
|
build_cmd(cmd, x, CMD_SIZE);
|
||||||
run_interactive(cmd, " Loading module %s", x);
|
run_interactive(cmd, " Loading module %s", x);
|
||||||
|
|||||||
Reference in new issue
Block a user