diff options
author | Alexey Shabalin <a.shabalin@gmail.com> | 2011-02-08 12:50:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-08 12:52:06 +0100 |
commit | a338bab5d0603a179befce062bc6fc8a6521a232 (patch) | |
tree | 3d6326e544326cf1f2054b2867b519c16be95bf2 /src/util.c | |
parent | 8d7cb6e0686214a7f57387d5c66cbc667a7f4659 (diff) |
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.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 15 |
1 files changed, 15 insertions, 0 deletions
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) { |