Sync the time on ip change and alert the logs

This commit is contained in:
Scott Ullrich 2008-11-09 05:43:20 +00:00
parent d271761b8c
commit 00518840da

View File

@ -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();