[systemd-commits] 2 commits - src/vconsole-setup.c
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Sep 17 16:20:19 PDT 2010
src/vconsole-setup.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
New commits:
commit a18fb4823b70b90f2d86297cd2d3f04aea03c38f
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Sep 18 01:20:13 2010 +0200
vconsole: drop vconsole config file var prefix
diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c
index 1412b20..0f730a0 100644
--- a/src/vconsole-setup.c
+++ b/src/vconsole-setup.c
@@ -204,10 +204,10 @@ int main(int argc, char **argv) {
/* Override distribution-specific options with the
* distribution-independent configuration */
if ((r = parse_env_file("/etc/vconsole", NEWLINE,
- "VCONSOLE_KEYMAP", &vc_keymap,
- "VCONSOLE_FONT", &vc_font,
- "VCONSOLE_FONT_MAP", &vc_font_map,
- "VCONSOLE_FONT_UNIMAP", &vc_font_unimap,
+ "KEYMAP", &vc_keymap,
+ "FONT", &vc_font,
+ "FONT_MAP", &vc_font_map,
+ "FONT_UNIMAP", &vc_font_unimap,
NULL)) < 0) {
if (r != -ENOENT)
commit ae509abccc09e0eb463cb17912409c72adb7f7fd
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Sep 18 01:19:46 2010 +0200
vconsole: more completely cover fedora legacy vconsole configuration
diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c
index cb8fc43..1412b20 100644
--- a/src/vconsole-setup.c
+++ b/src/vconsole-setup.c
@@ -171,6 +171,8 @@ int main(int argc, char **argv) {
#ifdef TARGET_FEDORA
if ((r = parse_env_file("/etc/sysconfig/i18n", NEWLINE,
"SYSFONT", &vc_font,
+ "SYSFONTACM", &vc_font_map,
+ "UNIMAP", &vc_font_unimap,
NULL)) < 0) {
if (r != -ENOENT)
@@ -179,11 +181,24 @@ int main(int argc, char **argv) {
if ((r = parse_env_file("/etc/sysconfig/keyboard", NEWLINE,
"KEYTABLE", &vc_keymap,
+ "KEYMAP", &vc_keymap,
NULL)) < 0) {
if (r != -ENOENT)
log_warning("Failed to read /etc/sysconfig/i18n: %s", strerror(-r));
}
+
+ if (access("/etc/sysconfig/console/default.kmap", F_OK) >= 0) {
+ char *t;
+
+ if (!(t = strdup("/etc/sysconfig/console/default.kmap"))) {
+ log_error("Out of memory.");
+ goto finish;
+ }
+
+ free(vc_keymap);
+ vc_keymap = t;
+ }
#endif
/* Override distribution-specific options with the
More information about the systemd-commits
mailing list