mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
Remove --disable-quiet and quiet mode, default to a sane behavior
This patch is a follow-up to 1f1c2e0 which introduced the new semantics
for the very confusing quiet and silent modes.
The initial idea was to loosely follow the kernel cmdline 'quiet' option
and as a working concept this was good. The resulting code, however,
became unnecessarily complex and the configure options impossible to
explain.
With this patch the quiet mode, and thus the --disable-quiet configure
option, is removed. Finit now defaults to a sane behavior: services are
shown only at startup. The --enable-silent option works like it did
before, silencing everything.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
7a48240856
commit
516dbcc512
5 files changed
+14
-32
No files matched your search
+2
-5
@@ -43,7 +43,7 @@ static int parse_conf(char *file);
|
||||
|
||||
void conf_parse_cmdline(void)
|
||||
{
|
||||
int dbg = 0, qit = 0;
|
||||
int dbg = 0;
|
||||
FILE *fp;
|
||||
|
||||
fp = fopen("/proc/cmdline", "r");
|
||||
@@ -57,13 +57,10 @@ void conf_parse_cmdline(void)
|
||||
if (strstr(line, "finit_debug") || strstr(line, "--debug"))
|
||||
dbg = 1;
|
||||
|
||||
if (strstr(line, "quiet"))
|
||||
qit = 1;
|
||||
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
log_init(qit, dbg);
|
||||
log_init(dbg);
|
||||
}
|
||||
|
||||
/* Convert optional "[!123456789S]" string into a bitmask */
|
||||
|
||||
Reference in new issue
Block a user