[X2Go-Commits] [live-build-x2go] 67/160: added sleep to increase chance that ntpdate manages to connect

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 01:55:43 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/openbox
in repository live-build-x2go.

commit f9b904f8c2b122ed8cdcefcc04c21a1606bc4228
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Mon Jul 24 11:50:30 2017 +0200

    added sleep to increase chance that ntpdate manages to connect
---
 config/includes.chroot/lib/live/config/2000-settime | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2000-settime b/config/includes.chroot/lib/live/config/2000-settime
index 1e9d5b2..cb0ada3 100755
--- a/config/includes.chroot/lib/live/config/2000-settime
+++ b/config/includes.chroot/lib/live/config/2000-settime
@@ -29,8 +29,10 @@ fi
 		echo -en "\n'\$0' is waiting for a previous ntpdate call to finish." | tee -a /dev/tty8
 		sleep 2
 	done
-	echo -en "\n\$(date +'%F | %T | ')'\$0': Interface '\$IFACE' is up - attempting to set time via ntp ..." | tee -a /dev/tty8
-	
+	echo -en "\n\$(date +'%F | %T | ')'\$0': Interface '\$IFACE' is up - attempting to set time via ntp in 20 seconds ..." | tee -a /dev/tty8
+
+	sleep 20 # make sure IP, Route, DNS are all up
+
 	if ntpdate-debian -s && hwclock --systohc ; then
 		echo -en "\n\$(date +'%F | %T | ')'\$0' - time has been set." | tee -a /dev/tty8
 	else

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list