[X2Go-Commits] [live-build-x2go] 39/167: first attempt at making all if-up scripts wait until an unused VT is available for log output

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 00:32:38 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 e6b46fb00a493b67abf7da8b6331fd2755799bd4
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Sun Jul 23 14:54:33 2017 +0200

    first attempt at making all if-up scripts wait until an unused  VT is available for log output
---
 .../lib/live/config/2000-waitforvts                | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/config/includes.chroot/lib/live/config/2000-waitforvts b/config/includes.chroot/lib/live/config/2000-waitforvts
new file mode 100755
index 0000000..8d558e6
--- /dev/null
+++ b/config/includes.chroot/lib/live/config/2000-waitforvts
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+WaitForVTs ()
+{
+
+# Output startup message
+#
+echo -n " waitforvts"
+
+cat >/etc/network/if-up.d/0000-waitforvts <<SHOWIPS
+#!/bin/bash
+export TERM=linux;
+
+# wait until terminal is available
+while ! [ -c /dev/tty$(fgconsole -n) ] ; do
+	echo -en "\n\$(date +'%F | %T | ')'\$0' is waiting for an unused VT to become available."
+	sleep 2
+done
+
+chmod 755 /etc/network/if-up.d/0000-waitforvts
+
+}
+
+WaitForVTs

--
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