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/vconsole-setup.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/vconsole-setup.c')
-rw-r--r-- | src/vconsole-setup.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c index d05c277ad9..1952dfb0f1 100644 --- a/src/vconsole-setup.c +++ b/src/vconsole-setup.c @@ -280,6 +280,24 @@ int main(int argc, char **argv) { if (r != -ENOENT) log_warning("Failed to read /etc/sysconfig/font: %s", strerror(-r)); } + +#elif defined(TARGET_ALTLINUX) + if ((r = parse_env_file("/etc/sysconfig/keyboard", NEWLINE, + "KEYTABLE", &vc_keymap, + NULL)) < 0) { + + if (r != -ENOENT) + log_warning("Failed to read /etc/sysconfig/keyboard: %s", strerror(-r)); + } + + if ((r = parse_env_file("/etc/sysconfig/consolefont", NEWLINE, + "SYSFONT", &vc_font, + NULL)) < 0) { + + if (r != -ENOENT) + log_warning("Failed to read /etc/sysconfig/console: %s", strerror(-r)); + } + #elif defined(TARGET_GENTOO) if ((r = parse_env_file("/etc/rc.conf", NEWLINE, "unicode", &vc_unicode, |