mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +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 parent
6a8a3fd4ab
commit
1843a0e66f
1 file changed
+1
-7
+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