summaryrefslogtreecommitdiff
path: root/scripts/system/vyatta_update_resolv.pl
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-08 18:08:38 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-08 18:08:38 +0000
commit6567750f6bf6d721432d57ef737b72070e697f64 (patch)
tree392a4e76b62590112ceba4acda7c1e71802b5386 /scripts/system/vyatta_update_resolv.pl
parent1924345ce05346497387542dffef2d6fc2821c0b (diff)
downloadvyatta-cfg-system-6567750f6bf6d721432d57ef737b72070e697f64.tar.gz
vyatta-cfg-system-6567750f6bf6d721432d57ef737b72070e697f64.zip
tighten regex pattern to get dhclient resolv files
Diffstat (limited to 'scripts/system/vyatta_update_resolv.pl')
-rwxr-xr-xscripts/system/vyatta_update_resolv.pl4
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) {