summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-30 19:21:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-30 19:21:53 +0000
commit81b338bd1db2bddb10fb75df9456fab84e00a913 (patch)
tree5c76047ed4edf7f9946bad701de09be168ca5ae6 /etc
parent0ec2c68b1314a0210f6bb71190508da249d1a4e9 (diff)
downloadpfsense-81b338bd1db2bddb10fb75df9456fab84e00a913.zip
pfsense-81b338bd1db2bddb10fb75df9456fab84e00a913.tar.gz
Do not check the old recorded ip, dhclient-script creates the file before running rc.newwanip which will result in the ip never "changing"
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.newwanip12
1 files changed, 0 insertions, 12 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 4d01a62..35be9e6 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -43,18 +43,6 @@
$interface = "wan";
}
- /* dhclient or MPD told us that the IP address has changed;
- let's see if that's really true to avoid reloading things
- when it's not really necessary (dhclient likes to
- execute its dhclient-exit-hooks also on renewals)
- */
- if (file_exists("{$g['vardb_path']}/{$interface}_ip")) {
- $oldwanip = chop(file_get_contents("{$g['vardb_path']}/{$interface}_ip"));
- log_error("Informational: DHClient spawned /etc/rc.newwanip but the ip has not changed.");
- if ($curwanip == $oldwanip)
- return 0; /* nothing to do */
- }
-
/* reconfigure IPsec tunnels */
vpn_ipsec_configure(true);
OpenPOWER on IntegriCloud