summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-09 02:51:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-09 02:51:58 +0000
commit2e85f5ed7781dfaf5d7ff5fef7d41c5dc1920242 (patch)
tree3276861d0fc3eceb89469d056fc80db48eee931c /usr
parent7aa216d6b5c62a6a74ad41e3f7f8c6adb11cf4de (diff)
downloadpfsense-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')
-rwxr-xr-xusr/local/sbin/ntpdate_sync_once.sh10
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
OpenPOWER on IntegriCloud