summaryrefslogtreecommitdiffstats
path: root/perl-install/keyboard.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-10-23 13:02:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-10-23 13:02:05 +0000
commit497e409c9d749f868602d2135c5110b814a32792 (patch)
treeee41c6f1122f21ea6ecd1f1c9b831e690a721158 /perl-install/keyboard.pm
parenta8e0062e543a5339aa8df1845a8204e8be5dcebc (diff)
downloaddrakx-backup-do-not-use-497e409c9d749f868602d2135c5110b814a32792.tar
drakx-backup-do-not-use-497e409c9d749f868602d2135c5110b814a32792.tar.gz
drakx-backup-do-not-use-497e409c9d749f868602d2135c5110b814a32792.tar.bz2
drakx-backup-do-not-use-497e409c9d749f868602d2135c5110b814a32792.tar.xz
drakx-backup-do-not-use-497e409c9d749f868602d2135c5110b814a32792.zip
if we have /bin/loadkeys, use it
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r--perl-install/keyboard.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm
index ab448865f..efa20dc01 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -471,7 +471,9 @@ sub setup {
my $kmap = keyboard2kmap($keyboard) or return;
log::l("loading keymap $kmap");
- if (-e (my $f = "$ENV{SHARE_PATH}/keymaps/$kmap.bkmap")) {
+ if (-x '/bin/loadkeys') {
+ run_program::run('loadkeys', $kmap);
+ } elsif (-e (my $f = "$ENV{SHARE_PATH}/keymaps/$kmap.bkmap")) {
load(scalar cat_($f));
} else {
my $F;