Introducing Finit progress 𝓜𝓸𝓭𝓮𝓻𝓷

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-01-02 14:59:32 +01:00
1 parent 3b62f46599
commit 636f6678ed
4 files changed
+144 -41

No files matched your search

+1 -5
View File
@@ -73,9 +73,6 @@ static int udev = 0; /* Runtime detection of udev */
*/
static void banner(void)
{
char *buf = INIT_HEADING;
char separator[SCREEN_WIDTH];
if (plugin_exists(HOOK_BANNER)) {
plugin_run_hooks(HOOK_BANNER);
return;
@@ -84,8 +81,7 @@ static void banner(void)
if (log_is_silent())
return;
memset(separator, '=', sizeof(separator));
fprintf(stderr, "\n\e[2K\e[1m%s %.*s\e[0m\n", buf, SCREEN_WIDTH - (int)strlen(buf) - 2, separator);
print_banner(INIT_HEADING);
}
static int ismnt(char *file, char *dir)