[X2Go-Commits] [live-build-x2go] 57/167: wait until regular ntpdate if-up.d call has finished

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 00:32:41 CET 2017


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

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

commit 13ddd00dede35322bbb1bc03905452f1b25b1175
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Mon Jul 24 00:11:31 2017 +0200

    wait until regular ntpdate if-up.d call has finished
---
 config/includes.chroot/lib/live/config/2000-settime | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/config/includes.chroot/lib/live/config/2000-settime b/config/includes.chroot/lib/live/config/2000-settime
index 04ec578..ba16b24 100755
--- a/config/includes.chroot/lib/live/config/2000-settime
+++ b/config/includes.chroot/lib/live/config/2000-settime
@@ -24,6 +24,10 @@ fi
 		echo -en "\n'\$0' is waiting for a client IP." | tee -a /dev/tty8
 		sleep 2
 	done
+	while [ -f /var/lock/ntpdate ] ; do
+		echo -en "\n'\$0' is waiting for a previous ntpdate call to finish." | tee -a /dev/tty8
+		sleep 2
+	done
 	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