summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/keyboard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm
index a1c13f9a4..fdd25f662 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -503,7 +503,7 @@ sub write {
}
sub read {
- my %keyboard = getVarsFromSh("$::prefix/etc/sysconfig/keyboard") or return {};
+ my %keyboard = getVarsFromSh("$::prefix/etc/sysconfig/keyboard") or return;
if (!$keyboard{KEYBOARD}) {
add2hash(\%keyboard, grep { keyboard2kmap($_) eq $keyboard{KEYTABLE} } keyboards());
}