summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-26 16:55:12 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-26 16:55:12 +0000
commit7a867791055aa7bd4904cbc27f9eb419eaeccc21 (patch)
treedc87c2e3bd9f1f83ae30f03c4204a9e22a80e611 /perl-install/standalone
parent74c155d2e009a0dd2290cc66fbd628376b3f3658 (diff)
downloaddrakx-7a867791055aa7bd4904cbc27f9eb419eaeccc21.tar
drakx-7a867791055aa7bd4904cbc27f9eb419eaeccc21.tar.gz
drakx-7a867791055aa7bd4904cbc27f9eb419eaeccc21.tar.bz2
drakx-7a867791055aa7bd4904cbc27f9eb419eaeccc21.tar.xz
drakx-7a867791055aa7bd4904cbc27f9eb419eaeccc21.zip
upsdrvctl start will fail if section name contains spaces
Diffstat (limited to 'perl-install/standalone')
-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 08a3008c6..47539278e 100755
--- a/perl-install/standalone/drakups
+++ b/perl-install/standalone/drakups
@@ -18,6 +18,7 @@ detect_devices::probeSerialDevices();
foreach my $ups_device (detect_devices::getUPS()) {
my $str = $ups_device->{name} || $ups_device->{DESCRIPTION};
+ $str =~ s/ /_/g;
if (!exists $struct->{$str}) {
$struct->{$str}{port} = $ups_device->{port} || $ups_device->{DEVICE};