diff options
author | jim-p <jimp@pfsense.org> | 2012-05-16 10:49:39 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-16 10:49:39 -0400 |
commit | 90df3bd8097c3d8f21175fd215a6e27ef50b2584 (patch) | |
tree | 6acd2f26cce1d237973531db237c745921bca6e1 /etc/inc | |
parent | 317d1c0bb59d64690441b840f44e5dcad8ccdcca (diff) | |
download | pfsense-90df3bd8097c3d8f21175fd215a6e27ef50b2584.zip pfsense-90df3bd8097c3d8f21175fd215a6e27ef50b2584.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.
Conflicts:
etc/rc.newwanipv6
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 2f04d3d..e343a17 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1106,7 +1106,7 @@ function system_timezone_configure() { echo "done.\n"; } -function system_ntp_configure() { +function system_ntp_configure($start_ntpd=true) { global $config, $g; $driftfile = "/var/db/ntpd.drift"; @@ -1131,6 +1131,10 @@ function system_ntp_configure() { /* slurp! */ fclose($fd); + /* At bootup we just want to write out the config. */ + if (!$start_ntpd) + return; + /* if ntpd is running, kill it */ while(is_process_running("ntpd")) { killbyname("ntpd"); @@ -1145,7 +1149,7 @@ function system_ntp_configure() { // Note that we are starting up log_error("NTPD is starting up."); - + return; } function sync_system_time() { |