diff options
author | Roy Marples <roy@marples.name> | 2008-03-03 17:19:56 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-03 17:19:56 +0000 |
commit | 15cf41e7131cebbb74241180f36f59384c7a0477 (patch) | |
tree | 30accca041088b161a4d5cfcb731dcd40a496868 /src/librc/librc.c | |
parent | f3e90dddbfcf838b653846cce7fd2be479c68900 (diff) |
Split VPS into VSERVER and OPENVZ
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r-- | src/librc/librc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index 16b0f0b7..c6280d15 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -207,8 +207,11 @@ const char *rc_sys (void) } else if (file_regex ("/proc/cpuinfo", "UML")) return (RC_SYS_UML); else if (file_regex ("/proc/self/status", - "(s_context|VxID|envID):[[:space:]]*[1-9]")) - return (RC_SYS_VPS); + "(s_context|VxID):[[:space:]]*[1-9]")) + return (RC_SYS_VSERVER); + else if (file_regex ("/proc/self/status", + "envID:[[:space:]]*[1-9]")) + return (RC_SYS_OPENVZ); #endif return (NULL); |