From dfe254e3f32dedbad32f88be1d31ea2d279cc50e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 21 Sep 2000 13:12:57 +0000 Subject: *** empty log message *** --- perl-install/standalone/keyboarddrake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/keyboarddrake b/perl-install/standalone/keyboarddrake index 3f3c78750..ca22c38eb 100755 --- a/perl-install/standalone/keyboarddrake +++ b/perl-install/standalone/keyboarddrake @@ -36,7 +36,7 @@ my $f = "/etc/X11/XF86Config"; my $g = "/etc/X11/XF86Config-4"; substInFile { - if (/^Section "Keyboard"/ .. /^EndSection/) { + if (/^Section\s+"Keyboard"/ .. /^EndSection/) { s|^(\s*XkbLayout\s+).*|$1"$xkb"| and $_ .= join '', map { " $_\n" } @{$xkb_options{$xkb} || []}; s,^(\s*(XkbVariant|XkbOptions)\s+).*,,; # remove existing one @@ -44,7 +44,7 @@ substInFile { } $f if -e $f && !$::testing; substInFile { - if (/^Identifier "Keyboard1"/ .. /^EndSection/) { + if (/Identifier\s+"Keyboard1"/ .. /^EndSection/) { s|^(\s*Option\s+"XkbLayout"\s+).*|$1"$xkb"| and $_ .= join '', map { /(\S+)(.*)/; qq( Option "$1" $2\n) } @{$xkb_options{$xkb} || []}; s,^(\s*Option\s+"(XkbVariant|XkbOptions)"\s+).*,,; # remove existing one -- cgit v1.2.1