summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-26 16:04:18 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-26 16:04:18 +0000
commitbbbfe1ec3d9516acd75905e124e5284b18cdba9e (patch)
treef247e1415556e5dc2d1e49fae9f436ad18fa7e60 /perl-install/detect_devices.pm
parent299b4476f2bbdda7d1e8fa757aa8849ca134d708 (diff)
downloaddrakx-bbbfe1ec3d9516acd75905e124e5284b18cdba9e.tar
drakx-bbbfe1ec3d9516acd75905e124e5284b18cdba9e.tar.gz
drakx-bbbfe1ec3d9516acd75905e124e5284b18cdba9e.tar.bz2
drakx-bbbfe1ec3d9516acd75905e124e5284b18cdba9e.tar.xz
drakx-bbbfe1ec3d9516acd75905e124e5284b18cdba9e.zip
export driver too
Diffstat (limited to 'perl-install/detect_devices.pm')
-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*"));