From 7a867791055aa7bd4904cbc27f9eb419eaeccc21 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 26 Nov 2003 16:55:12 +0000 Subject: upsdrvctl start will fail if section name contains spaces --- 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 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}; -- cgit v1.2.1