diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 02:51:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 02:51:58 +0000 |
commit | 2e85f5ed7781dfaf5d7ff5fef7d41c5dc1920242 (patch) | |
tree | 3276861d0fc3eceb89469d056fc80db48eee931c /usr/local/sbin/ntpdate_sync_once.sh | |
parent | 7aa216d6b5c62a6a74ad41e3f7f8c6adb11cf4de (diff) | |
download | pfsense-2e85f5ed7781dfaf5d7ff5fef7d41c5dc1920242.zip pfsense-2e85f5ed7781dfaf5d7ff5fef7d41c5dc1920242.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/local/sbin/ntpdate_sync_once.sh')
-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 |