summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2015-02-08 16:46:11 +0000
committerColin Guthrie <colin@mageia.org>2015-02-08 16:46:11 +0000
commit66aac0fe1ccab71d61b04308bdda326340ae8b25 (patch)
tree9b14e8c9b8e4e0984ca2e7be8148dff957db67bf /lib
parent3ef744046a6d2fef43a7e6dae2543eff9f6430de (diff)
downloaddrakx-kbd-mouse-x11-66aac0fe1ccab71d61b04308bdda326340ae8b25.tar
drakx-kbd-mouse-x11-66aac0fe1ccab71d61b04308bdda326340ae8b25.tar.gz
drakx-kbd-mouse-x11-66aac0fe1ccab71d61b04308bdda326340ae8b25.tar.bz2
drakx-kbd-mouse-x11-66aac0fe1ccab71d61b04308bdda326340ae8b25.tar.xz
drakx-kbd-mouse-x11-66aac0fe1ccab71d61b04308bdda326340ae8b25.zip
write KEYMAP to /etc/vconsole.conf
Diffstat (limited to 'lib')
-rw-r--r--lib/keyboard.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/keyboard.pm b/lib/keyboard.pm
index 5c67753..6c4641d 100644
--- a/lib/keyboard.pm
+++ b/lib/keyboard.pm
@@ -616,6 +616,12 @@ sub write {
$keyboard->{KEYTABLE} = keyboard2kmap($keyboard);
setVarsInSh("$::prefix/etc/sysconfig/keyboard", $keyboard);
+
+ if ($keyboard->{'KEYTABLE'}) {
+ my $h2 = { 'KEYMAP' => $keyboard->{'KEYTABLE'} };
+ addVarsInShMode("$::prefix/etc/vconsole.conf", 0644, $h2);
+ }
+
if (arch() =~ /ppc/) {
my $s = "dev.mac_hid.keyboard_sends_linux_keycodes = 1\n";
substInFile {