From ce5d7400b8213d2995bb96c4b80665082fde8975 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 24 May 2014 01:42:15 +0200 Subject: fix detecting some UPS devices (mga#13424) --- perl-install/detect_devices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 2e1a7c4d1..232664e73 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -950,7 +950,7 @@ sub getUPS() { # USB UPSs; (map { ($_->{name} = $_->{description}) =~ s/.*\|//; $_ } map { - if ($_->{description} =~ /^American Power Conversion\|Back-UPS/ && $_->{driver} eq 'usbhid') { + if ($_->{description} =~ /Back-UPS/ && $_->{driver} eq 'usbhid') { #- FIXME: should not be hardcoded, use $_->{sysfs_device} . */usb:(hiddev\d+) #- the device should also be assigned to the ups user $_->{port} = "/dev/hiddev0"; -- cgit v1.2.1