mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00: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:
1 parent
6c563a2b22
commit
0fc2df1a65
1 file changed
-22
-22
@@ -404,28 +404,6 @@ static int parse_conf(char *file)
|
|||||||
if (!fp)
|
if (!fp)
|
||||||
return 1;
|
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);
|
_d("Parsing %s", file);
|
||||||
while (!feof(fp)) {
|
while (!feof(fp)) {
|
||||||
if (!fgets(line, sizeof(line), fp))
|
if (!fgets(line, sizeof(line), fp))
|
||||||
|
|||||||
Reference in new issue
Block a user