mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
telinit: call initctl with '-b' to prevent screen size probing
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
f307ad060b
commit
a24fc941a6
1 file changed
+3
-3
+3
-3
@@ -431,13 +431,13 @@ static int telinit(int argc, char *argv[])
|
||||
int req = (int)argv[optind][0];
|
||||
|
||||
if (isdigit(req))
|
||||
return systemf("initctl runlevel %c", req);
|
||||
return systemf("initctl -b runlevel %c", req);
|
||||
|
||||
if (req == 'q' || req == 'Q')
|
||||
return systemf("initctl reload");
|
||||
return systemf("initctl -b reload");
|
||||
|
||||
if (req == 's' || req == 'S')
|
||||
return systemf("initctl runlevel %c", req);
|
||||
return systemf("initctl -b runlevel %c", req);
|
||||
}
|
||||
|
||||
/* XXX: add non-pid1 process monitor here
|
||||
|
||||
Reference in new issue
Block a user