Revert "rc: make get_systype similar to the old rc_sys function"

This reverts commit f79a7a7be1.
This commit is contained in:
William Hubbs
2016-01-18 23:40:20 -06:00
parent 6c09421375
commit 55a28f5d25
4 changed files with 186 additions and 176 deletions

View File

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