summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ntpdate_sync_once.sh
blob: deea394c2d9cf9c2506ddeba5bc1f52c7ddbfda6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

NOTSYNCED="true"

while [ "$NOTSYNCED" = "true" ]; do
	ntpdate "0.pfsense.pool.ntp.org"
	if [ "$?" = "0" ]; then
		NOTSYNCED="false"
	fi
done

# Launch -- we have net.
/usr/local/sbin/ntpd -s -f /var/etc/ntpd.conf
OpenPOWER on IntegriCloud