summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-09-17 06:51:06 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-09-17 06:51:06 +0000
commit01fe410ec375b8bf08ad9b5d6743a493fc8f213e (patch)
tree5d65be0516300ff11b1449a48c1d1949e8415da1 /perl-install
parentd3eb1b0b7aa1fd889a99ff7cac75ec2f73ddae55 (diff)
downloaddrakx-backup-do-not-use-01fe410ec375b8bf08ad9b5d6743a493fc8f213e.tar
drakx-backup-do-not-use-01fe410ec375b8bf08ad9b5d6743a493fc8f213e.tar.gz
drakx-backup-do-not-use-01fe410ec375b8bf08ad9b5d6743a493fc8f213e.tar.bz2
drakx-backup-do-not-use-01fe410ec375b8bf08ad9b5d6743a493fc8f213e.tar.xz
drakx-backup-do-not-use-01fe410ec375b8bf08ad9b5d6743a493fc8f213e.zip
(add_device_wizard) fix automatically detect/add an UPS
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakups1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/standalone/drakups b/perl-install/standalone/drakups
index 93ab53672..ea6edd1b2 100755
--- a/perl-install/standalone/drakups
+++ b/perl-install/standalone/drakups
@@ -95,6 +95,7 @@ Do you want to autodetect UPS devices connected to this machine or to manually s
foreach my $ups_device (detect_devices::getUPS()) {
my $str = $ups_device->{name} || $ups_device->{DESCRIPTION};
$str =~ s/ /_/g;
+ $name = $str;
if (!exists $struct->{$str}) {
$struct->{$str}{port} = $ups_device->{port} || $ups_device->{DEVICE};