diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-20 23:18:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-20 23:18:56 +0000 |
commit | 014f6f66978f7ddd096e5b1b9cbf50a2adb9f3be (patch) | |
tree | f4335833100c0974a13bec361f592439787c46f8 /perl-install/standalone | |
parent | 58486d4993b5eff48b5126f80b10efa8c77aa46a (diff) | |
download | drakx-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-x | perl-install/standalone/service_harddrake | 6 |
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)) { |