summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-05-09 12:07:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-05-09 12:07:40 +0000
commit164e94e201e9d49ab9464fc737dfcfbc43f6e596 (patch)
tree5deff235fd452802818f0a3f7b5a9a057b63f23a /perl-install/standalone
parente29430e040fb03c614900bbb39ec428c610a8726 (diff)
downloaddrakx-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar
drakx-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.gz
drakx-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.bz2
drakx-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.xz
drakx-164e94e201e9d49ab9464fc737dfcfbc43f6e596.zip
no_comment
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/mousedrake7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/standalone/mousedrake b/perl-install/standalone/mousedrake
index c05ad5d99..7ac3b927d 100755
--- a/perl-install/standalone/mousedrake
+++ b/perl-install/standalone/mousedrake
@@ -43,11 +43,18 @@ mouse::write('', $mouse);
modules::write_conf("/etc/conf.modules") if $mouse->{device} eq "usbmouse" && !$::testing;
my $f = "/etc/X11/XF86Config";
+my $g = "/etc/X11/XF86Config-4";
substInFile {
if (/^Section "Pointer"/ .. /^EndSection/) {
s|^(\s*Protocol\s+).*|$1"$mouse->{XMOUSETYPE}"|;
s|^(\s*Device\s+).*|$1"/dev/mouse"|;
}
} $f if -e $f && !$::testing;
+substInFile {
+ if (/^Identifier "Mouse1"/ .. /^EndSection/) {
+ s|^(\s*Option\s+"Protocol"\s+).*|$1"$mouse->{XMOUSETYPE}"|;
+ s|^(\s*Option\s+"Device"\s+).*|$1"/dev/mouse"|;
+ }
+} $g if -e $g && !$::testing;
$in->exit(0);