mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Silence, remove "Loading %sconfiguration ..." from boot progress
Most Linux distributions, embedded or otherwise, do not need this and only confuses the user of an OS with Finit. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
-22
@@ -404,28 +404,6 @@ static int parse_conf(char *file)
|
||||
if (!fp)
|
||||
return 1;
|
||||
|
||||
/*
|
||||
* If not standard finit.conf, then we want to show just the base name
|
||||
* Loading configuration ............. vs
|
||||
* Loading services configuration ....
|
||||
*/
|
||||
if (!string_match (file, FINIT_CONF)) {
|
||||
/* Remove leading path */
|
||||
x = strrchr(file, '/');
|
||||
if (!x) x = file;
|
||||
else x++;
|
||||
|
||||
/* Remove ending .conf */
|
||||
strlcpy(line, x, sizeof(line));
|
||||
x = strstr(line, ".conf");
|
||||
if (x) *x = 0;
|
||||
|
||||
/* Add empty space. */
|
||||
strcat(line, " ");
|
||||
}
|
||||
|
||||
print(0, "Loading %sconfiguration", line);
|
||||
|
||||
_d("Parsing %s", file);
|
||||
while (!feof(fp)) {
|
||||
if (!fgets(line, sizeof(line), fp))
|
||||
|
||||
Reference in New Issue
Block a user