diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-26 16:55:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-26 16:55:12 +0000 |
commit | 7a867791055aa7bd4904cbc27f9eb419eaeccc21 (patch) | |
tree | dc87c2e3bd9f1f83ae30f03c4204a9e22a80e611 | |
parent | 74c155d2e009a0dd2290cc66fbd628376b3f3658 (diff) | |
download | drakx-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
-rwxr-xr-x | perl-install/standalone/drakups | 1 |
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}; |