[systemd-commits] src/util.c

Lennart Poettering lennart at kemper.freedesktop.org
Wed Sep 8 15:18:03 PDT 2010


 src/util.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 0d37b36b2890fdf8149d12460ebb00822e555977
Author: Gustavo Sverzut Barbieri <barbieri at profusion.mobi>
Date:   Wed Sep 8 11:12:47 2010 -0300

    util: add Gentoo welcome message.

diff --git a/src/util.c b/src/util.c
index 0cd1fd3..ec3df94 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


More information about the systemd-commits mailing list