diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-08 18:08:38 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-08 18:08:38 +0000 |
commit | 6567750f6bf6d721432d57ef737b72070e697f64 (patch) | |
tree | 392a4e76b62590112ceba4acda7c1e71802b5386 /scripts | |
parent | 1924345ce05346497387542dffef2d6fc2821c0b (diff) | |
download | vyatta-cfg-system-6567750f6bf6d721432d57ef737b72070e697f64.tar.gz vyatta-cfg-system-6567750f6bf6d721432d57ef737b72070e697f64.zip |
tighten regex pattern to get dhclient resolv files
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/system/vyatta_update_resolv.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl index b35cae4a..cb6599ae 100755 --- a/scripts/system/vyatta_update_resolv.pl +++ b/scripts/system/vyatta_update_resolv.pl @@ -74,7 +74,7 @@ foreach my $domain (@domains) { # add domain names received from dhcp client to domain search in /etc/resolv.conf if domain-name not set in CLI if (!defined($domain_name)) { - my @dhcp_interfaces_resolv_files = `ls /etc/ | grep dhclient.new`; + my @dhcp_interfaces_resolv_files = `ls /etc/ | grep resolv.conf.dhclient-new`; if ($#dhcp_interfaces_resolv_files >= 0) { for my $each_file (@dhcp_interfaces_resolv_files) { chomp $each_file; @@ -107,7 +107,7 @@ if ($dhclient_script == 1) { # code below to add new name-servers received from dhcp client - my @dhcp_interfaces_resolv_files = `ls /etc/ | grep dhclient.new`; + my @dhcp_interfaces_resolv_files = `ls /etc/ | grep resolv.conf.dhclient-new`; if ($#dhcp_interfaces_resolv_files >= 0) { my $ns_count = 0; for my $each_file (@dhcp_interfaces_resolv_files) { |