diff options
author | Claudio Matsuoka <claudio@mandriva.com> | 2010-03-08 19:25:38 +0000 |
---|---|---|
committer | Claudio Matsuoka <claudio@mandriva.com> | 2010-03-08 19:25:38 +0000 |
commit | a1ebedbb0e485043ddee7330beaaf54d34bc6f67 (patch) | |
tree | d6abf82bef00f8e435640986aebf1539f85e4a60 | |
parent | 7b49957cce72eabf045c5ee1635b4cb18d80723b (diff) | |
download | drakx-net-a1ebedbb0e485043ddee7330beaaf54d34bc6f67.tar drakx-net-a1ebedbb0e485043ddee7330beaaf54d34bc6f67.tar.gz drakx-net-a1ebedbb0e485043ddee7330beaaf54d34bc6f67.tar.bz2 drakx-net-a1ebedbb0e485043ddee7330beaaf54d34bc6f67.tar.xz drakx-net-a1ebedbb0e485043ddee7330beaaf54d34bc6f67.zip |
Revert previous code to write to resolvconf (shouldn't be done) (#54180)
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | lib/network/network.pm | 11 |
2 files changed, 1 insertions, 14 deletions
@@ -1,7 +1,3 @@ -- drakconnect: - o write name servers to correct file (/etc/resolvconf/run/interfaces/<iface> - instead of /etc/resolv.conf which gets overwritten) (#54180) - 0.75.4: - wireless backend: o encryption key is always ASCII when not using WEP (#52128) diff --git a/lib/network/network.pm b/lib/network/network.pm index fd43c3d..9a9adc4 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 { |