From 3fb60b53b47bd0346e3ceee4cfd63f3242670cd4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 9 Nov 2008 02:50:55 +0000 Subject: [PATCH] Add script that will keep trying to set the date time (for bootup) that will run in the background to help speedup boot times. --- usr/local/sbin/ntpdate_sync_once.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 usr/local/sbin/ntpdate_sync_once.sh 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