summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/network.pm11
1 files changed, 1 insertions, 10 deletions
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 {