From 01fe410ec375b8bf08ad9b5d6743a493fc8f213e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 17 Sep 2004 06:51:06 +0000 Subject: (add_device_wizard) fix automatically detect/add an UPS --- perl-install/standalone/drakups | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/standalone/drakups') 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}; -- cgit v1.2.1