diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-03-21 15:40:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-03-21 15:40:18 +0000 |
commit | 5e87f40090eceb7aff9cf28b81a438c039b8df55 (patch) | |
tree | cf4c183bd7354f7ee34574cfd7bfdfd9d343cc6b /perl-install/detect_devices.pm | |
parent | fe33ccd1ad8fde3fdc2873ff428076c917c3ec20 (diff) | |
download | drakx-5e87f40090eceb7aff9cf28b81a438c039b8df55.tar drakx-5e87f40090eceb7aff9cf28b81a438c039b8df55.tar.gz drakx-5e87f40090eceb7aff9cf28b81a438c039b8df55.tar.bz2 drakx-5e87f40090eceb7aff9cf28b81a438c039b8df55.tar.xz drakx-5e87f40090eceb7aff9cf28b81a438c039b8df55.zip |
(getUPS) enforce "hidups" as driver for BackPro UPSes
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 1561fc9bb..618cb2e6c 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -592,13 +592,13 @@ sub getUPS() { $_; } grep { $_->{DESCRIPTION} =~ /MGE UPS/ } values %serialprobe), # USB UPSs; - (grep { $_->{description} =~ /American Power Conversion\|Back-UPS/ } @usb_devices), + (grep { $_->{driver} = 'hidups' if $_->{driver} eq 'usbhid'; $_->{description} =~ /American Power Conversion\|Back-UPS/ } @usb_devices), (map { $_->{port} = "auto"; $_->{media_type} = 'UPS'; $_->{driver} = 'newhidups'; $_; - } grep { $_->{driver} =~ /ups$/ } @usb_devices); + } grep { $_->{driver} =~ /ups$/ && $_->{description} !~ /American Power Conversion\|Back-UPS/ } @usb_devices); } $pcitable_addons = <<'EOF'; |