diff options
author | Tom Gundersen <teg@jklm.no> | 2010-09-18 23:45:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-20 23:14:23 +0200 |
commit | 424313503a6813bd78a7e8524668044ab61f3fb3 (patch) | |
tree | 14123c966156924dbe45e106aa3023292a21632b | |
parent | b56e57470c92f123044ea690b5404bdd730ddaa6 (diff) |
vconsole: set keyboard mapping and font settings on Arch
These variables are defined in /etc/rc.conf
-rw-r--r-- | src/vconsole-setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c index 0f730a0e7e..06d9a21191 100644 --- a/src/vconsole-setup.c +++ b/src/vconsole-setup.c @@ -199,6 +199,16 @@ int main(int argc, char **argv) { free(vc_keymap); vc_keymap = t; } +#elif defined(TARGET_ARCH) + if ((r = parse_env_file("/etc/rc.conf", NEWLINE, + "KEYMAP", &vc_keymap, + "CONSOLEFONT", &vc_font, + "CONSOLEMAP", &vc_font_map, + NULL)) < 0) { + + if (r != -ENOENT) + log_warning("Failed to read /etc/rc.conf: %s", strerror(-r)); + } #endif /* Override distribution-specific options with the |