summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-09-10 05:58:25 +0700
committerDaniil Baturin <daniil@baturin.org>2014-09-10 05:58:25 +0700
commitcffeb5c8d05a996049e487a75f06b4cdd68b23ae (patch)
tree6435279bdb1cc00e923667fc87f1173d6b3a52cf /scripts
parentb80cc96f1c13b3da4377209a5143d3c5d39f3182 (diff)
parentabe35d623c4fa5867ef132174e92e818b3c79fb1 (diff)
downloadvyatta-cfg-system-cffeb5c8d05a996049e487a75f06b4cdd68b23ae.tar.gz
vyatta-cfg-system-cffeb5c8d05a996049e487a75f06b4cdd68b23ae.zip
Merge pull request #23 from cyclops8456/helium
vyatta-cfg-system: add 'set system allow-dhcp-nameservers' option
Diffstat (limited to 'scripts')
-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 6a60278b..ee14034b 100755
--- a/scripts/system/vyatta_update_resolv.pl
+++ b/scripts/system/vyatta_update_resolv.pl
@@ -94,8 +94,8 @@ if ($domain_name && length($domain_name) > 0) {
}
# update /etc/resolv.conf for name-servers received from dhcp client, only done when dhclient-script calls this script
-# and there aren't statically configured DNS settings, via 'set system name-server', in place.
-if (($dhclient_script == 1) && !($vc->existsOrig('name-server'))) {
+# and allow-dhcp-nameservers is set to true (default)
+if (($dhclient_script == 1) && ($vc->returnOrigValue('allow-dhcp-nameservers') eq "true")) {
my @current_dhcp_nameservers;
my $restart_ntp = 0;