diff options
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r-- | perl-install/keyboard.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm index c8cf30e24..5aeb07900 100644 --- a/perl-install/keyboard.pm +++ b/perl-install/keyboard.pm @@ -626,8 +626,9 @@ sub read() { if (!$keyboard{KEYBOARD}) { add2hash(\%keyboard, grep { keyboard2kmap($_) eq $keyboard{KEYTABLE} } keyboards()); } - keyboard2text(\%keyboard) ? \%keyboard : {}; + keyboard2text(\%keyboard) && \%keyboard; } +sub read_or_default() { &read() || default() } sub check() { $^W = 0; |