diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-06 17:13:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-06 17:13:18 +0000 |
commit | 7c4bc2258abb36a3295fcc2cce910544b705d2e1 (patch) | |
tree | 08803470088ea3be8c930289600a1b81520a31b8 /perl-install/harddrake/data.pm | |
parent | 57e3018fdf17c4ef475948c5e2a829db4c37e198 (diff) | |
download | drakx-7c4bc2258abb36a3295fcc2cce910544b705d2e1.tar drakx-7c4bc2258abb36a3295fcc2cce910544b705d2e1.tar.gz drakx-7c4bc2258abb36a3295fcc2cce910544b705d2e1.tar.bz2 drakx-7c4bc2258abb36a3295fcc2cce910544b705d2e1.tar.xz drakx-7c4bc2258abb36a3295fcc2cce910544b705d2e1.zip |
- don't list usb mouses as unknown hw
- fix mouse detection (mouse::detect() needed
modules::mergein_conf('/etc/modules.conf') first
- don't skip mouse in --test mode
Diffstat (limited to 'perl-install/harddrake/data.pm')
-rw-r--r-- | perl-install/harddrake/data.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm index ac912794a..d88925014 100644 --- a/perl-install/harddrake/data.pm +++ b/perl-install/harddrake/data.pm @@ -12,7 +12,7 @@ my @devices = detect_devices::probeall(1); # Update me each time you handle one more devices class (aka configurator) sub unknown { - grep { ($_->{media_type} !~ /tape|SERIAL_(USB|SMBUS)|Printer|DISPLAY|MULTIMEDIA_(VIDEO|AUDIO|OTHER)|STORAGE_(IDE|SCSI|OTHER)|BRIDGE|NETWORK/) && ($_->{driver} ne 'scanner') && $_->{type} ne 'network'} @devices; + grep { ($_->{media_type} !~ /tape|SERIAL_(USB|SMBUS)|Printer|DISPLAY|MULTIMEDIA_(VIDEO|AUDIO|OTHER)|STORAGE_(IDE|SCSI|OTHER)|BRIDGE|NETWORK/) && ($_->{driver} ne 'scanner') && $_->{type} ne 'network' && $_->{driver} !~ /Mouse:USB|/} @devices; } @@ -69,7 +69,10 @@ our @tree = sub { require scanner; scanner::detect() }, 0 ], ["MOUSE","Mouse", "hw_mouse.png", "$sbindir/mousedrake", sub { - require mouse; &mouse::detect() } , 1 ], + require mouse; + require modules; + modules::mergein_conf('/etc/modules.conf') if -r '/etc/modules.conf'; + &mouse::detect() } , 1 ], ["JOYSTICK","Joystick", "joystick.png", "", sub {}, 0 ], ["ATA_STORAGE","(E)IDE/ATA controllers", "ide_hd.png", "", sub { grep { $_->{media_type} =~ 'STORAGE_(IDE|OTHER)' } @devices}, 0 ], |