summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2010-09-08 11:12:47 -0300
committerLennart Poettering <lennart@poettering.net>2010-09-09 00:17:34 +0200
commit0d37b36b2890fdf8149d12460ebb00822e555977 (patch)
tree2b3ffac5e08716a8768bdfb9c1e4148b0fb5cb89 /src
parentc31e14954b158351b11f886332229a61fff2e5d1 (diff)
util: add Gentoo welcome message.
Diffstat (limited to 'src')
-rw-r--r--src/util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 0cd1fd30df..ec3df94642 100644
--- a/src/util.c
+++ b/src/util.c
@@ -2835,6 +2835,17 @@ void status_welcome(void) {
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."
#endif