diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-08-16 16:54:45 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-08-16 16:55:17 -0300 |
commit | 6d501aefc2598af0a48c00c5b9f85bd6d72803ce (patch) | |
tree | b09ab20202a820bbb5d8a39c4c6b8aaf947747de /usr/local | |
parent | 17921b7e8dd8e1113a391ed5f570d31ab8c88154 (diff) | |
download | pfsense-6d501aefc2598af0a48c00c5b9f85bd6d72803ce.zip pfsense-6d501aefc2598af0a48c00c5b9f85bd6d72803ce.tar.gz |
Use ntpdate from ports also and obsolete base one
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/sbin/ntpdate_sync_once.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/ntpdate_sync_once.sh b/usr/local/sbin/ntpdate_sync_once.sh index 3809b23..ebe33b5 100755 --- a/usr/local/sbin/ntpdate_sync_once.sh +++ b/usr/local/sbin/ntpdate_sync_once.sh @@ -12,7 +12,7 @@ while [ "$NOTSYNCED" = "true" ] && [ ${ATTEMPT} -le ${MAX_ATTEMPTS} ]; do /usr/bin/killall ntpd 2>/dev/null /usr/bin/killall ntpdate 2>/dev/null sleep 1 - /usr/sbin/ntpdate -s -t 5 ${SERVER} + /usr/local/bin/ntpdate -s -t 5 ${SERVER} if [ "$?" = "0" ]; then NOTSYNCED="false" else @@ -32,4 +32,4 @@ if [ -f /var/etc/ntpd.conf ]; then /usr/local/bin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid else echo "NTP configuration file missing, not starting daemon." | /usr/bin/logger -t ntp; -fi
\ No newline at end of file +fi |