From: Tom Gundersen Date: Sat, 18 Sep 2010 22:45:39 +0000 (+0100) Subject: vconsole: set keyboard mapping and font settings on Arch X-Git-Tag: v11~125 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=424313503a6813bd78a7e8524668044ab61f3fb3;p=systemd vconsole: set keyboard mapping and font settings on Arch These variables are defined in /etc/rc.conf --- diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c index 0f730a0e..06d9a211 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