summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-10-05 06:49:55 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-10-05 06:49:55 +0000
commit3cdb016a9614ee7d29a10bfba814a35dacb98e5d (patch)
treea9d2aa793bf0c3af89e58ff1840236339bcd6d95
parent352328234b9c3dcda45b99edb65abb93a4895c76 (diff)
downloaddrakx-3cdb016a9614ee7d29a10bfba814a35dacb98e5d.tar
drakx-3cdb016a9614ee7d29a10bfba814a35dacb98e5d.tar.gz
drakx-3cdb016a9614ee7d29a10bfba814a35dacb98e5d.tar.bz2
drakx-3cdb016a9614ee7d29a10bfba814a35dacb98e5d.tar.xz
drakx-3cdb016a9614ee7d29a10bfba814a35dacb98e5d.zip
(getUPS) fix drivers
-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 2dc3e633a..4a1eea66d 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -574,8 +574,8 @@ sub getUPS() {
(map {
$_->{port} = $_->{DEVICE};
$_->{bus} = "Serial";
- $_->{driver} = "UPS:mge-utalk" if $_->{MODEL} =~ /0001/;
- $_->{driver} = "UPS:mge-shut" if $_->{MODEL} =~ /0002/;
+ $_->{driver} = "mge-utalk" if $_->{MODEL} =~ /0001/;
+ $_->{driver} = "mge-shut" if $_->{MODEL} =~ /0002/;
$_->{media_type} = 'UPS';
$_->{description} = "MGE UPS SYSTEMS|UPS - Uninterruptible Power Supply" if $_->{MODEL} =~ /000[12]/;
$_;
@@ -586,6 +586,7 @@ sub getUPS() {
($_->{name} = $_->{description}) =~ s/.*\|//;
$_->{port} = "/dev/"; # FIXME
$_->{media_type} = 'UPS';
+ $_->{driver} =~ s/^UPS://;
$_;
} grep { $_->{driver} =~ /ups$/ } @usb_devices);
}