diff options
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r-- | perl-install/keyboard.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm index 454b346b1..b70da0746 100644 --- a/perl-install/keyboard.pm +++ b/perl-install/keyboard.pm @@ -630,6 +630,17 @@ sub write { } } +sub configure_xorg { + my ($keyboard) = @_; + + require Xconfig::default; + my $xfree_conf = Xconfig::xfree->read; + if (!is_empty_array_ref($xfree_conf)) { + Xconfig::default::config_keyboard($xfree_conf, $keyboard); + $xfree_conf->write; + } +} + sub read() { my %keyboard = getVarsFromSh("$::prefix/etc/sysconfig/keyboard") or return; if (!$keyboard{KEYBOARD}) { |