summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-04-08 11:20:25 -0400
committerjim-p <jimp@pfsense.org>2011-04-08 11:20:25 -0400
commit2db351a746212dbf43479440e6c12fcd592ebbfa (patch)
treec3fafb09754192bb40daba092ca1f14c53f54943
parentfbfd675a532a85858530d9ad7bdd63d563189bec (diff)
downloadpfsense-2db351a746212dbf43479440e6c12fcd592ebbfa.zip
pfsense-2db351a746212dbf43479440e6c12fcd592ebbfa.tar.gz
Send ntpdate output to syslog
-rwxr-xr-xusr/local/sbin/ntpdate_sync_once.sh2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud