diff --git a/usr/local/sbin/ntpdate_sync_once.sh b/usr/local/sbin/ntpdate_sync_once.sh new file mode 100755 index 0000000000..a7f98a3c89 --- /dev/null +++ b/usr/local/sbin/ntpdate_sync_once.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +NOTSYNCED="true" + +while [ "$NOTSYNCED" = "true" ]; do + ntpdate "0.pfsense.pool.ntp.org" + if [ "$?" = "0" ]; then + NOTSYNCED="false" + fi +done