mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Send ntpdate output to syslog
This commit is contained in:
parent
fbfd675a53
commit
2db351a746
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user