mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Sync the time on ip change and alert the logs
This commit is contained in:
parent
d271761b8c
commit
00518840da
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user