diff options
author | Doug Freed <dwfreed@mtu.edu> | 2016-01-17 22:57:26 -0800 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-19 00:09:20 -0600 |
commit | 62b49b2a3ad1c13012305b4d7281d7f6543c70d7 (patch) | |
tree | 45149e089af411bdd35a713449126b4d49124c0b /src/rc | |
parent | 4c814a0a285565bc09d662f602f93dbb938503c6 (diff) |
rc: remove use of magic constant and allow OpenVZ to drop to shell
OpenVZ has had console support for a long time now; allow them to use it
to drop to a shell during interactive boot.
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/rc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index 1aae45ff..7836341e 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -283,9 +283,8 @@ open_shell(void) #ifdef __linux__ const char *sys = rc_sys(); - /* VSERVER and OPENVZ systems cannot really drop to shells */ - if (sys && - (strcmp(sys, "VSERVER") == 0 || strcmp(sys, "OPENVZ") == 0)) + /* VSERVER systems cannot really drop to shells */ + if (sys && strcmp(sys, RC_SYS_VSERVER) == 0) { execl("/sbin/halt", "/sbin/halt", "-f", (char *) NULL); eerrorx("%s: unable to exec `/sbin/halt': %s", |