diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-18 23:40:20 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-18 23:40:20 -0600 |
commit | 55a28f5d2524615560698453a5a6afd50460030c (patch) | |
tree | 4017651bb7b10b124058a6d422551e86cfbd449e /src/rc/_usage.c | |
parent | 6c0942137572608d02eb4b34bad55c9bf418a6ba (diff) |
Revert "rc: make get_systype similar to the old rc_sys function"
This reverts commit f79a7a7be18d68bf264efc60d82838d03048da6b.
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 40d81422..9fc3e5d8 100644 --- a/src/rc/_usage.c +++ b/src/rc/_usage.c @@ -44,9 +44,12 @@ void set_quiet_options(void) _noreturn void show_version(void) { - char *systype = get_systype(); + const char *systype = NULL; printf("%s (OpenRC", applet); + systype = detect_container(); + if (!systype) + systype = detect_vm(); if (systype) printf(" [%s]", systype); printf(") %s", VERSION); |