Project

General

Profile

Download (334 Bytes) Statistics
| Branch: | Tag: | Revision:
1 2e85f5ed Scott Ullrich
#!/bin/sh
2
3
NOTSYNCED="true"
4 88e46869 Scott Ullrich
SERVER=`cat /cf/conf/config.xml | grep timeservers | cut -d">" -f2 | cut -d"<" -f1`
5 2e85f5ed Scott Ullrich
6
while [ "$NOTSYNCED" = "true" ]; do
7 88e46869 Scott Ullrich
	ntpdate $SERVER
8 2e85f5ed Scott Ullrich
	if [ "$?" = "0" ]; then
9
		NOTSYNCED="false"
10
	fi
11 88e46869 Scott Ullrich
	sleep 5
12 2e85f5ed Scott Ullrich
done
13 9583064a Scott Ullrich
14
# Launch -- we have net.
15 d271761b Scott Ullrich
killall ntpd 2>/dev/null
16
sleep 1
17 9583064a Scott Ullrich
/usr/local/sbin/ntpd -s -f /var/etc/ntpd.conf