From 2c6f46ddb8c2b76558f5145850fd4d339a66ba3a Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 15 Apr 2019 16:12:53 +0200 Subject: xkb: move xkb_configure to kbd.c --- fbcon.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'fbcon.c') diff --git a/fbcon.c b/fbcon.c index db76b85..c63c47f 100644 --- a/fbcon.c +++ b/fbcon.c @@ -186,36 +186,6 @@ static void console_switch_resume(void) /* ---------------------------------------------------------------------- */ -static void xkb_configure(void) -{ - char line[128], *m, *v, *h; - FILE *fp; - - fp = fopen("/etc/vconsole.conf", "r"); - if (!fp) - return; - while (fgets(line, sizeof(line), fp)) { - if (strncmp(line, "KEYMAP=", 7) != 0) - continue; - m = line + 7; - if (*m == '"') - m++; - if ((h = strchr(m, '\n')) != NULL) - *h = 0; - if ((h = strchr(m, '"')) != NULL) - *h = 0; - v = strchr(m, '-'); - if (v) { - *(v++) = 0; - xkb_layout.variant = strdup(v); - } - xkb_layout.layout = strdup(m); - } - fclose(fp); -} - -/* ---------------------------------------------------------------------- */ - struct color { float r; float g; -- cgit