diff options
author | Colin Guthrie <colin@mageia.org> | 2015-02-08 16:46:11 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2015-02-08 16:46:11 +0000 |
commit | 66aac0fe1ccab71d61b04308bdda326340ae8b25 (patch) | |
tree | 9b14e8c9b8e4e0984ca2e7be8148dff957db67bf | |
parent | 3ef744046a6d2fef43a7e6dae2543eff9f6430de (diff) | |
download | drakx-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
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/keyboard.pm | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- write KEYMAP to /etc/vconsole.conf + Version 1.4 - 2 January 2015 - translations updates 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 { |