diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 02:50:55 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 02:50:55 +0000 |
commit | 3fb60b53b47bd0346e3ceee4cfd63f3242670cd4 (patch) | |
tree | 24e681acf485b98fde9ab35af46df151d5fad4ae /usr | |
parent | 1f03d30ce824e6023426e75b7fa01096410e274d (diff) | |
download | pfsense-3fb60b53b47bd0346e3ceee4cfd63f3242670cd4.zip pfsense-3fb60b53b47bd0346e3ceee4cfd63f3242670cd4.tar.gz |
Add script that will keep trying to set the date time (for bootup) that
will run in the background to help speedup boot times.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/sbin/ntpdate_sync_once.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/sbin/ntpdate_sync_once.sh b/usr/local/sbin/ntpdate_sync_once.sh new file mode 100755 index 0000000..a7f98a3 --- /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 |