Hi,

This patch adds a welcome message to Arch systems, similarly to what
is done for the other systems. The only difference is that Arch does
not have releases, so no release name either. It therefore just prints
"Welcome to Arch Linux!".

Cheers,

Tom
From 736fb6ca7d57df793d11c0cb2c038c91f2e6f1d2 Mon Sep 17 00:00:00 2001
From: Tom Gundersen <[email protected]>
Date: Mon, 13 Sep 2010 18:27:36 +0200
Subject: [PATCH] util: add Arch welcome message

Arch has no release name, so juts prints 'Welcome to Arch Linux!'.
The color is the same as used by Arch's native rc.sysinit.
---
 src/util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/util.c b/src/util.c
index b4beb2d..93f982e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -2859,6 +2859,8 @@ void status_welcome(void) {
 	status_printf("Welcome to Debian \x1B[1;31m%s\x1B[0m!\n", r); /* Light Red for Debian */
 
 	free(r);
+#elif defined(TARGET_ARCH)
+	status_printf("Welcome to \x1B[1;36mArch Linux\x1B[0m!\n"); /* Cyan for Arch */
 #else
 #warning "You probably should add a welcome text logic here."
 #endif
-- 
1.7.2.3

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to