aboutsummaryrefslogtreecommitdiff
path: root/src/rc/_usage.c
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-07 17:56:02 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-08 12:09:33 -0600
commit9f6e05671d6d48faa7b83aec05a637bcdfcb3f82 (patch)
tree9bd6a120ddac1c57eda065dac7d98e6280ec8996 /src/rc/_usage.c
parent8addd7913a743b75ef3854ab4a96fea81cc5245d (diff)
Convert rc_sys() calls to detect_container() and detect_vm()
Diffstat (limited to 'src/rc/_usage.c')
-rw-r--r--src/rc/_usage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rc/_usage.c b/src/rc/_usage.c
index 2ab0fa6d..a6bad4db 100644
--- a/src/rc/_usage.c
+++ b/src/rc/_usage.c
@@ -56,7 +56,10 @@ show_version(void)
const char *systype = NULL;
printf("%s (OpenRC", applet);
- if ((systype = rc_sys()))
+ systype = detect_container();
+ if (!systype)
+ systype = detect_vm();
+ if (systype)
printf(" [%s]", systype);
printf(") %s", VERSION);
#ifdef BRANDING