mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +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) {
|
if ((f = fopen("/proc/cmdline", "r")) != NULL) {
|
||||||
fgets(line, LINE_SIZE, f);
|
fgets(line, LINE_SIZE, f);
|
||||||
if (strstr(line, "quiet")) {
|
if ((strstr(line, "finit_debug")))
|
||||||
close(0);
|
|
||||||
close(1);
|
|
||||||
close(2);
|
|
||||||
}
|
|
||||||
if ((strstr(line, "finit_debug"))) {
|
|
||||||
debug = 1;
|
debug = 1;
|
||||||
}
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user