mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
Honor quiet flag in kernel command line
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
9e0b22ddb6
commit
c70872f19e
1 file changed
+3
-5
+3
-5
@@ -208,9 +208,6 @@ int main()
|
|||||||
struct utmp entry;
|
struct utmp entry;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
puts("finit-alt " VERSION " (built " __DATE__ " " __TIME__
|
|
||||||
" by " WHOAMI ")");
|
|
||||||
|
|
||||||
chdir("/");
|
chdir("/");
|
||||||
umask(022);
|
umask(022);
|
||||||
|
|
||||||
@@ -247,16 +244,17 @@ int main()
|
|||||||
if ((strstr(line, "finit_debug"))) {
|
if ((strstr(line, "finit_debug"))) {
|
||||||
debug = 1;
|
debug = 1;
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
if (strstr(line, "quiet")) {
|
if (strstr(line, "quiet")) {
|
||||||
close(0);
|
close(0);
|
||||||
close(1);
|
close(1);
|
||||||
close(2);
|
close(2);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
puts("finit-alt " VERSION " (built " __DATE__ " " __TIME__
|
||||||
|
" by " WHOAMI ")");
|
||||||
|
|
||||||
setsid();
|
setsid();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user