diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-07 17:56:02 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-08 12:09:33 -0600 |
commit | 9f6e05671d6d48faa7b83aec05a637bcdfcb3f82 (patch) | |
tree | 9bd6a120ddac1c57eda065dac7d98e6280ec8996 /src/rc/_usage.c | |
parent | 8addd7913a743b75ef3854ab4a96fea81cc5245d (diff) |
Convert rc_sys() calls to detect_container() and detect_vm()
Diffstat (limited to 'src/rc/_usage.c')
-rw-r--r-- | src/rc/_usage.c | 5 |
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 |