rc: make get_systype similar to the old rc_sys function

This commit is contained in:
William Hubbs
2016-01-18 15:50:50 -06:00
parent 73482cf13a
commit f79a7a7be1
4 changed files with 176 additions and 186 deletions

View File

@@ -44,12 +44,9 @@ void set_quiet_options(void)
_noreturn void show_version(void)
{
const char *systype = NULL;
char *systype = get_systype();
printf("%s (OpenRC", applet);
systype = detect_container();
if (!systype)
systype = detect_vm();
if (systype)
printf(" [%s]", systype);
printf(") %s", VERSION);