From 86c4b36e8d2e610a5d0286a6c2c9b95314c1e80f Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Thu, 26 Jun 2008 19:35:25 +0000 Subject: removing code to update resolv.conf from here, it is better to call it from dhclient-script --- scripts/vyatta-interfaces.pl | 3 --- 1 file changed, 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"); } -- cgit v1.2.3