diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-06-04 21:46:48 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-06-04 21:46:48 +0000 |
commit | 18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f (patch) | |
tree | 0f035c56acf331e6bd4e590152f4f8da4b447e1b | |
parent | 7687598e5c21eaab68e18ca7e05810105f35a210 (diff) | |
download | drakx-backup-do-not-use-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar drakx-backup-do-not-use-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar.gz drakx-backup-do-not-use-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar.bz2 drakx-backup-do-not-use-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.tar.xz drakx-backup-do-not-use-18c2135a665e9e5b5d8f6d9f3d7abfa9e3bad12f.zip |
do not assign hidups driver to all usbhid devices
-rw-r--r-- | perl-install/detect_devices.pm | 2 |
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'; |