diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-05-09 12:07:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-05-09 12:07:40 +0000 |
commit | 164e94e201e9d49ab9464fc737dfcfbc43f6e596 (patch) | |
tree | 5deff235fd452802818f0a3f7b5a9a057b63f23a /perl-install/standalone/mousedrake | |
parent | e29430e040fb03c614900bbb39ec428c610a8726 (diff) | |
download | drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.gz drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.bz2 drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.xz drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.zip |
no_comment
Diffstat (limited to 'perl-install/standalone/mousedrake')
-rwxr-xr-x | perl-install/standalone/mousedrake | 7 |
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); |