mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Don't close descriptors on kernel "quiet" flag
(Asus legacy). Closing them prevents fsck output when booting quietly. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
+1
-7
@@ -249,14 +249,8 @@ int main()
|
||||
*/
|
||||
if ((f = fopen("/proc/cmdline", "r")) != NULL) {
|
||||
fgets(line, LINE_SIZE, f);
|
||||
if (strstr(line, "quiet")) {
|
||||
close(0);
|
||||
close(1);
|
||||
close(2);
|
||||
}
|
||||
if ((strstr(line, "finit_debug"))) {
|
||||
if ((strstr(line, "finit_debug")))
|
||||
debug = 1;
|
||||
}
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user