summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-27 07:31:48 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-27 07:31:48 +0000
commit52c3b495a1eeb723b97ebf2b76c89fec1bd0062b (patch)
treecf99a88d2bd340050178c56f00caf87a189bed2f /perl-install
parent45515c157ddee60a2a3f5f899311daadb79c8f8b (diff)
downloaddrakx-52c3b495a1eeb723b97ebf2b76c89fec1bd0062b.tar
drakx-52c3b495a1eeb723b97ebf2b76c89fec1bd0062b.tar.gz
drakx-52c3b495a1eeb723b97ebf2b76c89fec1bd0062b.tar.bz2
drakx-52c3b495a1eeb723b97ebf2b76c89fec1bd0062b.tar.xz
drakx-52c3b495a1eeb723b97ebf2b76c89fec1bd0062b.zip
let drakconnect be less verbose: aka explain rename of old configuration files
if that had been already done
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 542577a3d..b78715bf3 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -457,7 +457,8 @@ sub read_raw_net_conf {
my ($suffix) = @_;
my $dir = "$::prefix/etc/sysconfig/network-scripts";
# $suffix = $suffix ? ".$suffix" : '';
- rename "$dir/draknet$suffix", "$dir/drakconnect$suffix";
+my $file = "$dir/draknet$suffix";
+ rename $file, "$dir/drakconnect$suffix" if -e $file;
getVarsFromSh("$dir/drakconnect_conf");
}