summaryrefslogtreecommitdiffstats
path: root/etc/rc.newroutedns
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-02-25 01:08:35 +0545
committerPhil Davis <phil.davis@inf.org>2015-02-25 01:08:35 +0545
commite173dd74fd009a4771552fb0e2cb3ee508072d30 (patch)
treebea5145e029d123a60deef2758f6563fcceb1fed /etc/rc.newroutedns
parentb8b3784f243f8f8a372cf976fa2385ca1e14e80c (diff)
downloadpfsense-e173dd74fd009a4771552fb0e2cb3ee508072d30.zip
pfsense-e173dd74fd009a4771552fb0e2cb3ee508072d30.tar.gz
Code style for etc files
Diffstat (limited to 'etc/rc.newroutedns')
-rwxr-xr-xetc/rc.newroutedns8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc.newroutedns b/etc/rc.newroutedns
index dfc766b..ba8ca32 100755
--- a/etc/rc.newroutedns
+++ b/etc/rc.newroutedns
@@ -34,15 +34,17 @@ require_once("functions.inc");
require_once("system.inc");
/* make sure to wait until the boot scripts have finished */
-if (file_exists("{$g['varrun_path']}/booting"))
+if (file_exists("{$g['varrun_path']}/booting")) {
return;
+}
$staticroutes = get_staticroutes();
-if (count($staticroutes))
+if (count($staticroutes)) {
log_error("Static Routes: One or more aliases used for routing has changed its IP. Refreshing.");
-else
+} else {
return;
+}
$routelck = lock('routedns', LOCK_EX);
OpenPOWER on IntegriCloud