summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-20 23:18:56 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-20 23:18:56 +0000
commit014f6f66978f7ddd096e5b1b9cbf50a2adb9f3be (patch)
treef4335833100c0974a13bec361f592439787c46f8 /perl-install/standalone
parent58486d4993b5eff48b5126f80b10efa8c77aa46a (diff)
downloaddrakx-014f6f66978f7ddd096e5b1b9cbf50a2adb9f3be.tar
drakx-014f6f66978f7ddd096e5b1b9cbf50a2adb9f3be.tar.gz
drakx-014f6f66978f7ddd096e5b1b9cbf50a2adb9f3be.tar.bz2
drakx-014f6f66978f7ddd096e5b1b9cbf50a2adb9f3be.tar.xz
drakx-014f6f66978f7ddd096e5b1b9cbf50a2adb9f3be.zip
faster auto mouse reconfiguration on major kernel switch
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 2d9a357cc..231606d80 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -27,7 +27,11 @@ my $prev_kernel = { getVarsFromSh("$hw_sysconfdir/kernel") }->{KERNEL};
my $curr_kernel = c::kernel_version();
$curr_kernel =~ s/(^\d+\.\d+).*/\1/;
setVarsInSh("$hw_sysconfdir/kernel", KERNEL => $curr_kernel);
-system("mousedrake --auto") if $curr_kernel ne $prev_kernel;
+if ($curr_kernel ne $prev_kernel) {
+ require class_discard;
+ require mouse;
+ mouse::write_conf(class_discard->new, mouse::detect(), 1);
+}
if (find { $_->{driver} =~ /Card:NVIDIA/ } detect_devices::probeall()) {
if (find { -e join('', "/lib/modules/", c::kernel_version(), "/kernel/drivers/$_") } map { ("video/$_", "char/$_") } qw(NVdriver nvidia.o nvidia.o.gz nvidia.ko nvidia.ko.gz)) {