util: add Gentoo welcome message.
This commit is contained in:
parent
c31e14954b
commit
0d37b36b28
11
src/util.c
11
src/util.c
|
@ -2834,6 +2834,17 @@ void status_welcome(void) {
|
|||
truncate_nl(r);
|
||||
|
||||
status_printf("Welcome to \x1B[0;32m%s\x1B[0m!\n", r); /* Green for SUSE */
|
||||
free(r);
|
||||
#elif defined(TARGET_GENTOO)
|
||||
char *r;
|
||||
|
||||
if (read_one_line_file("/etc/gentoo-release", &r) < 0)
|
||||
return;
|
||||
|
||||
truncate_nl(r);
|
||||
|
||||
status_printf("Welcome to \x1B[1;34m%s\x1B[0m!\n", r); /* Light Blue for Gentoo */
|
||||
|
||||
free(r);
|
||||
#else
|
||||
#warning "You probably should add a welcome text logic here."
|
||||
|
|
Loading…
Reference in New Issue