diff options
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r-- | perl-install/keyboard.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm index 5b0a09de9..588b9c20d 100644 --- a/perl-install/keyboard.pm +++ b/perl-install/keyboard.pm @@ -155,6 +155,7 @@ arch() =~ /^ppc/ ? ( ), ); + #-###################################################################################### #- Functions #-###################################################################################### @@ -171,6 +172,19 @@ sub text2keyboard { die "unknown keyboard $t"; } +sub loadkeys_files { + my $p = "/usr/lib/kbd/keymaps/i386/*"; + my $post = ".kmap.gz"; + my %trans = ("cz-latin2" => "cz-lat2"); + my @l; + foreach (values %keyboards) { + local $_ = $trans{$_->[1]} || $_->[1]; + my ($l) = glob("$p/$_$post"); + $l or /(..)/ and ($l) = glob("$p/$1$post"); + push @l, $l if $l; + print STDERR "unknown $_\n" if $_[0] && !$l; + } +} sub lang2keyboard($) { local ($_) = @_; |