summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-16 10:48:26 -0400
committerjim-p <jimp@pfsense.org>2012-05-16 10:48:26 -0400
commit0b8e9d38d8bc8a53b4e6bb503f487dae425ca3fd (patch)
tree876c344332e9ed7c0f970e41f44aafeae455f14c /etc/rc.newwanip
parent11e069064b417cacbd56f7f557b131af3c10fb86 (diff)
downloadpfsense-0b8e9d38d8bc8a53b4e6bb503f487dae425ca3fd.zip
pfsense-0b8e9d38d8bc8a53b4e6bb503f487dae425ca3fd.tar.gz
On its own, ntpd does not sync fast enough at bootup, so bring back the ntpdate sync but improve it so it can't get stuck forever.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index fd73901..a33502c 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -50,7 +50,8 @@ function restart_packages() {
global $oldip, $curwanipi, $g;
/* restart packages */
- system_ntp_configure();
+ system_ntp_configure(false);
+ mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages.");
send_event("service reload packages");
}
OpenPOWER on IntegriCloud