diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-26 19:35:25 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-26 19:35:25 +0000 |
commit | 86c4b36e8d2e610a5d0286a6c2c9b95314c1e80f (patch) | |
tree | 0544b540bf01983267ff512b7928f4fe3c89d9c2 /scripts | |
parent | d58ea68e07ac987e642947ceabe3dd87ecdb22ad (diff) | |
download | vyatta-cfg-86c4b36e8d2e610a5d0286a6c2c9b95314c1e80f.tar.gz vyatta-cfg-86c4b36e8d2e610a5d0286a6c2c9b95314c1e80f.zip |
removing code to update resolv.conf from here, it is better to call it from dhclient-script
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-interfaces.pl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index 5424b64..18fbf61 100644 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -254,13 +254,10 @@ sub run_dhclient { sub stop_dhclient { my $intf = shift; - my $new_resolv_conf = "/etc/resolv.conf.dhclient-new-$intf"; my ($intf_config_file, $intf_process_id_file, $intf_leases_file) = generate_dhclient_intf_files($intf); my $release_cmd = "$dhcp_daemon -q -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file -r $intf 2> /dev/null"; system ($release_cmd); - my $update_resolv_conf_cmd = "rm -f $new_resolv_conf; echo \" \" > $new_resolv_conf; /opt/vyatta/sbin/vyatta_update_resolv.pl --dhclient-script 1"; - system($update_resolv_conf_cmd); system ("rm -f $intf_config_file"); } |