From 2db351a746212dbf43479440e6c12fcd592ebbfa Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 8 Apr 2011 11:20:25 -0400 Subject: Send ntpdate output to syslog --- usr/local/sbin/ntpdate_sync_once.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/sbin') diff --git a/usr/local/sbin/ntpdate_sync_once.sh b/usr/local/sbin/ntpdate_sync_once.sh index 508ce3e..3983578 100755 --- a/usr/local/sbin/ntpdate_sync_once.sh +++ b/usr/local/sbin/ntpdate_sync_once.sh @@ -4,7 +4,7 @@ NOTSYNCED="true" SERVER=`cat /cf/conf/config.xml | grep timeservers | cut -d">" -f2 | cut -d"<" -f1` while [ "$NOTSYNCED" = "true" ]; do - ntpdate $SERVER + ntpdate -s $SERVER if [ "$?" = "0" ]; then NOTSYNCED="false" fi -- cgit v1.1