summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakups
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/drakups')
-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};