summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.newwanip8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 8045fbe..0169359 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -107,9 +107,13 @@ filter_configure();
enable_rrd_graphing();
/* restart packages */
-if($old_ip <> "")
- if($old_ip <> $curwanip)
+if($old_ip <> "") {
+ if($old_ip <> $curwanip) {
+ mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
exec("/etc/rc.start_packages");
+ log_error("pfSense package system has detected an ip change $old_ip -> $curwanip ... Restarting packages.");
+ }
+}
/* reconfigure our gateway monitor */
setup_gateways_monitor();
OpenPOWER on IntegriCloud