mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Add --enable-quiet to configure, makes Finit real quiet.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
2026486fda
commit
0dd97de046
9 files changed
+56
-30
No files matched your search
@@ -172,6 +172,9 @@ char *runlevel_string(int levels)
|
||||
*/
|
||||
int banner(void)
|
||||
{
|
||||
if (getpid() == 1 && !verbose)
|
||||
return 0;
|
||||
|
||||
delline();
|
||||
#ifdef INIT_HEADING
|
||||
echo("%s", INIT_HEADING);
|
||||
@@ -515,7 +518,7 @@ int run_interactive(char *cmd, char *fmt, ...)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (fmt) {
|
||||
if (verbose && fmt) {
|
||||
va_start(ap, fmt);
|
||||
vsnprintf(line, sizeof(line), fmt, ap);
|
||||
va_end(ap);
|
||||
@@ -547,7 +550,7 @@ int run_interactive(char *cmd, char *fmt, ...)
|
||||
}
|
||||
}
|
||||
|
||||
if (fmt)
|
||||
if (verbose && fmt)
|
||||
print_result(status);
|
||||
|
||||
/* Dump any results of cmd on stderr after we've printed [ OK ] or [FAIL] */
|
||||
|
||||
Reference in new issue
Block a user