From 0564c8d123e0966fdd2b4989783c62bca35988d2 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 4 May 2009 16:06:06 +0000 Subject: Add detect_devices::hasTouchpad() function --- perl-install/modules.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index f6e481973..e1ad11906 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -192,7 +192,8 @@ sub write_preload_conf { push @l, 'nvram' if $is_laptop; push @l, map { $_->{driver} } detect_devices::probe_category($_) foreach qw(multimedia/dvb multimedia/tv various/agpgart various/laptop input/joystick various/crypto disk/card_reader); push @l, 'padlock-aes', 'padlock-sha' if cat_("/proc/cpuinfo") =~ /rng_en/; - push @l, 'evdev' if any { $_->{Synaptics} || $_->{ALPS} || $_->{Elantech} || $_->{HWHEEL} } detect_devices::getInputDevices(); + push @l, 'evdev' if detect_devices::hasTouchpad(); + push @l, 'evdev' if any { $_->{HWHEEL} } getInputDevices(); push @l, 'hdaps' if $is_laptop && $manufacturer eq 'LENOVO'; append_to_modules_loaded_at_startup("$::prefix/etc/modprobe.preload", @l); } -- cgit v1.2.1