summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 6b329d816..fcfb017e7 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -448,12 +448,13 @@ sub getUPS() {
return $ret == $usage ? 1 : 0;
};
- (grep { $_->{DESCRIPTION} =~ /MGE UPS/ } values %serialprobe),
+ (map { $_->{driver} = "mge-shut"; $_ } grep { $_->{DESCRIPTION} =~ /MGE UPS/ } values %serialprobe),
(map {
open(my $f, $_);
if_(!$hiddev_find_application->($f, $UPS_USAGE) && !$hiddev_find_application->($f, $POWER_USAGE),
{ port => $_,
- name => c::get_usb_ups_name(fileno($f))
+ name => c::get_usb_ups_name(fileno($f)),
+ driver => "hidups",
}
);
} -e "/dev/.devfsd" ? glob("/dev/usb/hid/hiddev*") : glob("/dev/usb/hiddev*"));