diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-26 16:04:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-26 16:04:18 +0000 |
commit | bbbfe1ec3d9516acd75905e124e5284b18cdba9e (patch) | |
tree | f247e1415556e5dc2d1e49fae9f436ad18fa7e60 /perl-install | |
parent | 299b4476f2bbdda7d1e8fa757aa8849ca134d708 (diff) | |
download | drakx-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')
-rw-r--r-- | perl-install/detect_devices.pm | 5 |
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*")); |