summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-09-10 02:07:01 +0700
committerDaniil Baturin <daniil@baturin.org>2014-09-10 02:07:01 +0700
commitb80cc96f1c13b3da4377209a5143d3c5d39f3182 (patch)
treef90941d00a489f30ae0ab822c87ed701668bd90d
parentb50307ae493f2ae3ba3aa7a0d3bbb868b9542d19 (diff)
parent51fc24c24c8f3e9f893a7df550f755f9fc7d1d76 (diff)
downloadvyatta-cfg-system-b80cc96f1c13b3da4377209a5143d3c5d39f3182.tar.gz
vyatta-cfg-system-b80cc96f1c13b3da4377209a5143d3c5d39f3182.zip
Merge pull request #22 from cyclops8456/helium
vyatta-cfg-system: revert bb71cf5b7b3a48812e28dbefba8c535f9bbf9973
-rwxr-xr-xscripts/system/vyatta_update_resolv.pl11
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl
index d20eb848..6a60278b 100755
--- a/scripts/system/vyatta_update_resolv.pl
+++ b/scripts/system/vyatta_update_resolv.pl
@@ -128,12 +128,11 @@ if (($dhclient_script == 1) && !($vc->existsOrig('name-server'))) {
}
}
if ($ns_in_resolvconf == 0) {
- open (my $rf, '>>', '/etc/resolv.conf')
- or die "$! error trying to overwrite";
- print $rf "#nameserver\t$ns\t\t#nameserver written by $0\n";
- print $rf "nameserver\t$ns\n";
- close $rf;
- $restart_ntp = 1;
+ open (my $rf, '>>', '/etc/resolv.conf')
+ or die "$! error trying to overwrite";
+ print $rf "nameserver\t$ns\t\t#nameserver written by $0\n";
+ close $rf;
+ $restart_ntp = 1;
}
}
}