From a338bab5d0603a179befce062bc6fc8a6521a232 Mon Sep 17 00:00:00 2001 From: Alexey Shabalin Date: Tue, 8 Feb 2011 12:50:56 +0100 Subject: build-sys: initial support ALTLinux Hi all! I added basic support for ALTLinux. Please see patch or http://git.altlinux.org/people/shaba/packages/systemd.git?p=systemd.git;a=shortlog;h=refs/heads/altlinux Thanks. --- src/util.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index ef37d05751..7692a2d620 100644 --- a/src/util.c +++ b/src/util.c @@ -3017,6 +3017,21 @@ void status_welcome(void) { if (!ansi_color) const_color = "1;34"; /* Light Blue for Gentoo */ +#elif defined(TARGET_ALTLINUX) + + if (!pretty_name) { + if ((r = read_one_line_file("/etc/altlinux-release", &pretty_name)) < 0) { + + if (r != -ENOENT) + log_warning("Failed to read /etc/altlinux-release: %s", strerror(-r)); + } else + truncate_nl(pretty_name); + } + + if (!ansi_color) + const_color = "0;36"; /* Cyan for ALTLinux */ + + #elif defined(TARGET_DEBIAN) if (!pretty_name) { -- cgit v1.2.3-54-g00ecf