summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-06-04 21:46:48 +0000
committerOlivier Blin <oblin@mandriva.com>2007-06-04 21:46:48 +0000
commit18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f (patch)
tree0f035c56acf331e6bd4e590152f4f8da4b447e1b /perl-install
parent7687598e5c21eaab68e18ca7e05810105f35a210 (diff)
downloaddrakx-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar
drakx-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar.gz
drakx-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar.bz2
drakx-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar.xz
drakx-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.zip
do not assign hidups driver to all usbhid devices
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index fe12a4ebb..9510f9a1e 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -697,7 +697,7 @@ sub getUPS() {
$_;
} grep { $_->{DESCRIPTION} =~ /MGE UPS/ } values %serialprobe),
# USB UPSs;
- (grep { $_->{driver} = 'hidups' if $_->{driver} eq 'usbhid'; $_->{description} =~ /American Power Conversion\|Back-UPS/ } @usb_devices),
+ (map { $_->{driver} = 'hidups'; $_ } grep { $_->{driver} eq 'usbhid' && $_->{description} =~ /American Power Conversion\|Back-UPS/ } @usb_devices),
(map {
$_->{port} = "auto";
$_->{media_type} = 'UPS';