Convert rc_sys() calls to detect_container() and detect_vm()

This commit is contained in:
William Hubbs
2015-12-07 17:56:02 -06:00
parent 8addd7913a
commit 9f6e05671d
4 changed files with 28 additions and 8 deletions

View File

@@ -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