From 649f63d882d53533ae8b1c3b28967e772e738c45 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sun, 17 Jan 2016 21:43:46 -0800 Subject: librc: move system detection code into rc_sys and use it This fixes an issue where librc code was calling code that only existed in the rc binary. This reverts commits 8addd79 and 9f6e056 This fixes #75. --- src/rc/_usage.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/rc/_usage.c') diff --git a/src/rc/_usage.c b/src/rc/_usage.c index 9fc3e5d8..0d3d5edd 100644 --- a/src/rc/_usage.c +++ b/src/rc/_usage.c @@ -47,10 +47,7 @@ _noreturn void show_version(void) const char *systype = NULL; printf("%s (OpenRC", applet); - systype = detect_container(); - if (!systype) - systype = detect_vm(); - if (systype) + if ((systype = rc_sys())) printf(" [%s]", systype); printf(") %s", VERSION); #ifdef BRANDING -- cgit v1.2.3