summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2000-09-26 11:37:42 +0000
committerdamien <damien@mandriva.com>2000-09-26 11:37:42 +0000
commitfa432c7cee366d7081c822a800618368b20e9901 (patch)
treef56cb55a6b997a09ba3d121df9476fd8c6515572 /perl-install
parent69dbbf82448de2dac8e5c54354c201cb95cecf4c (diff)
downloaddrakx-backup-do-not-use-fa432c7cee366d7081c822a800618368b20e9901.tar
drakx-backup-do-not-use-fa432c7cee366d7081c822a800618368b20e9901.tar.gz
drakx-backup-do-not-use-fa432c7cee366d7081c822a800618368b20e9901.tar.bz2
drakx-backup-do-not-use-fa432c7cee366d7081c822a800618368b20e9901.tar.xz
drakx-backup-do-not-use-fa432c7cee366d7081c822a800618368b20e9901.zip
updated
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/network.pm b/perl-install/network.pm
index f38c1675b..bfc94ed96 100644
--- a/perl-install/network.pm
+++ b/perl-install/network.pm
@@ -88,12 +88,12 @@ sub write_resolv_conf {
my (%search, %dns, @unknown);
local *F; open F, $file;
- my $a;
+ my $dns_auto;
foreach (<F>) {
/^[#\s]*search\s+(.*?)\s*$/ and $search{$1} = $., next;
/^[#\s]*nameserver\s+(.*?)\s*$/ and $dns{$1} = $., next;
/^[#\s]*(\S.*?)\s*$/ and push @unknown, $1;
- /^# ppp temp entry$/ and $a=1;
+ /^# ppp temp entry$/ and $dns_auto=1;
}
close F; open F, ">$file" or die "cannot write $file: $!";
@@ -101,7 +101,7 @@ sub write_resolv_conf {
print F "search $netc->{DOMAINNAME} $netc->{DOMAINNAME2}\n\n" if ($netc->{DOMAINNAME} || $netc->{DOMAINNAME2});
print F "# nameserver $_\n" foreach grep { ! exists $used_dns{$_} } sort { $dns{$a} <=> $dns{$b} } keys %dns;
print F "nameserver $_\n" foreach sort { $used_dns{$a} <=> $used_dns{$b} } grep { $_ } keys %used_dns;
- $a and print F "# ppp temp entry\n";
+ $dns_auto and print F "# ppp temp entry\n";
print F "\n";
print F "# $_\n" foreach @unknown;