summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/timesync/usr/local/sbin/redneck-timesync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/timesync/usr/local/sbin/redneck-timesync.sh')
-rwxr-xr-xsatellit_installer/static_files/timesync/usr/local/sbin/redneck-timesync.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/satellit_installer/static_files/timesync/usr/local/sbin/redneck-timesync.sh b/satellit_installer/static_files/timesync/usr/local/sbin/redneck-timesync.sh
index 5fc8794..30ebaad 100755
--- a/satellit_installer/static_files/timesync/usr/local/sbin/redneck-timesync.sh
+++ b/satellit_installer/static_files/timesync/usr/local/sbin/redneck-timesync.sh
@@ -31,10 +31,12 @@ URLS="
"
F=$(mktemp)
-[ -z "$F" ] && F=/tmp/timesync-boot
+[ -z "$F" ] && F="/tmp/timesync-boot.$$"
NOW=$(date +%s)
ECODE=0
+/usr/local/sbin/slx-wait-online
+
# Request all at once, HEAD only, 2 sec timeout
for url in $URLS; do
curl -s -m 2 -I "$url" &