summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2014-09-09 19:40:28 +0100
committerAlex Harpin <development@landsofshadow.co.uk>2014-09-09 19:40:28 +0100
commitefb549809bbdd011640a5a2bf8c6650fe5e30847 (patch)
treeddfb9cf7063d8db7f021434d74e785e05db51720
parentb50307ae493f2ae3ba3aa7a0d3bbb868b9542d19 (diff)
downloadvyatta-cfg-system-efb549809bbdd011640a5a2bf8c6650fe5e30847.tar.gz
vyatta-cfg-system-efb549809bbdd011640a5a2bf8c6650fe5e30847.zip
vyatta-cfg-system: formatting changes for style consistency
Update scripts/system/vyatta_update_resolv.pl to have consistent identation levels and style throughout.
-rwxr-xr-xscripts/system/vyatta_update_resolv.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl
index d20eb848..a0151990 100755
--- a/scripts/system/vyatta_update_resolv.pl
+++ b/scripts/system/vyatta_update_resolv.pl
@@ -128,12 +128,12 @@ 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";
+ print $rf "nameserver\t$ns\n";
+ close $rf;
+ $restart_ntp = 1;
}
}
}