summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-27 20:50:28 +0000
committerErmal <eri@pfsense.org>2010-04-27 20:50:28 +0000
commit461c0a1a4dde2b3ae1e350db581d1837554eb515 (patch)
treec69de146f8a9b4a01c73eb3bea4e83c790c864f0 /etc/rc.newwanip
parent40655051c8c67b5d37868f1ff0ae7fcfb0dd1d0f (diff)
downloadpfsense-461c0a1a4dde2b3ae1e350db581d1837554eb515.zip
pfsense-461c0a1a4dde2b3ae1e350db581d1837554eb515.tar.gz
Ticket #449. Actually save something to read back.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 32c85e8..95d44a3 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -79,6 +79,7 @@ services_dnsupdate_process($interface);
/* write current WAN IP to file */
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;
OpenPOWER on IntegriCloud