From 0fc2df1a65b63d6462d9198fa234def871ebf8b9 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 19 Nov 2017 12:29:31 +0100 Subject: [PATCH] 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 --- src/conf.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/conf.c b/src/conf.c index c4ee93d3..d4a45d11 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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))