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

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 01:55:40 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 76832d52e2d81d799e67181e55bd18edd9671b3e
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