summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/network/network.pm11
2 files changed, 1 insertions, 12 deletions
diff --git a/NEWS b/NEWS
index c7ea4b9..db23cc2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,3 @@
-- write name servers to correct file (/etc/resolvconf/run/interfaces/<iface>
- instead of /etc/resolv.conf which gets overwritten) (#54180)
- properly update /etc/hosts file when there are multiple aliases for the
the same ip (#30168).
- ndiswrapper support:
diff --git a/lib/network/network.pm b/lib/network/network.pm
index 26f4600..fa8df00 100644
--- a/lib/network/network.pm
+++ b/lib/network/network.pm
@@ -126,17 +126,10 @@ sub write_zeroconf {
services::set_status('tmdns', $net->{zeroconf}{hostname}, $::isInstall);
}
-sub update_resolv_conf {
- # is there a better way to do this?
- system "/etc/init.d/resolvconf reload";
-}
-
sub write_resolv_conf {
my ($net) = @_;
my $resolv = $net->{resolv};
- # (bug #54180)
- #my $file = $::prefix . $resolv_file;
- my $file = $::prefix . "/etc/resolvconf/run/interface/" . $net->{net_interface};
+ my $file = $::prefix . $resolv_file;
my %new = (
search => [ grep { $_ } uniq(@$resolv{'DOMAINNAME', 'DOMAINNAME2', 'DOMAINNAME3'}) ],
@@ -172,8 +165,6 @@ sub write_resolv_conf {
};
output_with_perm($file, 0644, @search, @nameserver, (map { "# $_\n" } @unknown), "\n# ppp temp entry\n");
- update_resolv_conf();
-
#-res_init(); # reinit the resolver so DNS changes take affect
1;
} else {