summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-30 16:52:25 +0000
committerErmal <eri@pfsense.org>2010-09-30 16:52:25 +0000
commit3640c5676522f993d15a55f6d12852276bd9440d (patch)
treecc49dfa1b0d16a029403812b7a2fdfddd8ba8c32 /etc/rc.newwanip
parenta02708b12becb467d2d1ce4a60802e1d804d670b (diff)
downloadpfsense-3640c5676522f993d15a55f6d12852276bd9440d.zip
pfsense-3640c5676522f993d15a55f6d12852276bd9440d.tar.gz
Ticket #921. Actually reconfigure apinger in case of newip event because it might impact a previous down event.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 9d3d484..c018cb0 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -78,15 +78,15 @@ system_resolvconf_generate(true);
file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip);
file_put_contents("{$g['vardb_path']}/{$interface}_cacheip", $curwanip);
-if (is_ipaddr($oldip) && $curwanip == $oldip)
- exit;
-
/* reconfigure static routes (kernel may have deleted them) */
system_routing_configure($interface);
/* reconfigure our gateway monitor */
setup_gateways_monitor();
+if (is_ipaddr($oldip) && $curwanip == $oldip)
+ exit;
+
/* perform RFC 2136 DNS update */
services_dnsupdate_process($interface);
OpenPOWER on IntegriCloud