Only launch single user when RUNLEVEL == S, #74.
This commit is contained in:
parent
766ec96e3d
commit
3663cf1e2a
@ -338,12 +338,13 @@ static void sulogin(bool cont)
|
|||||||
if (! cont) {
|
if (! cont) {
|
||||||
rc_logger_close();
|
rc_logger_close();
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
if (RUNLEVEL && strcmp(RUNLEVEL, "S") == 0) {
|
||||||
execl("/sbin/sulogin", "/sbin/sulogin", (char *) NULL);
|
execl("/sbin/sulogin", "/sbin/sulogin", (char *) NULL);
|
||||||
eerrorx("%s: unable to exec `/sbin/sulogin': %s",
|
eerrorx("%s: unable to exec `/sbin/sulogin': %s",
|
||||||
applet, strerror(errno));
|
applet, strerror(errno));
|
||||||
#else
|
}
|
||||||
exit(EXIT_SUCCESS);
|
|
||||||
#endif
|
#endif
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
Reference in New Issue
Block a user