[X2Go-Commits] [live-build-x2go] 103/167: motd and issue are now written to simultaneously; once finished, all unused VTs are reloaded to make sure they display the new /etc/issue

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 00:32:50 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 42a78b7d05ef4167627d37b61ff97c1a7d759df8
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Wed Jul 26 16:53:08 2017 +0200

    motd and issue are now written to simultaneously; once finished, all unused VTs are reloaded to make sure they display the new /etc/issue
---
 config/includes.chroot/lib/live/config/2100-show-sysconf | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2100-show-sysconf b/config/includes.chroot/lib/live/config/2100-show-sysconf
index 1725540..f3cf38b 100755
--- a/config/includes.chroot/lib/live/config/2100-show-sysconf
+++ b/config/includes.chroot/lib/live/config/2100-show-sysconf
@@ -52,12 +52,12 @@ fi
 		/bin/grep -P --color=always "link/ether .*? |$" )
 
 	IPMSG=\$( sed 's/^/- /' <<< "\$IPMSG" )
-	echo "\$IPMSG" >> /etc/issue
+	echo "\$IPMSG" | tee -a /etc/motd >> /etc/issue
 	[ -n "\$BOOTEDENV" ] && echo "- Booted Environment: \$BOOTEDENV" >> /etc/issue
 	[ -n "\$TIMESTAMP" ] && echo "- Build Version: \$TIMESTAMP (\$HUMANTIMESTAMP)" >> /etc/issue
-	echo "\$IPMSG" >> /etc/motd
-	[ -n "\$BOOTEDENV" ] && echo "- Booted Environment: \$BOOTEDENV" >> /etc/motd
-	[ -n "\$TIMESTAMP" ] && echo "- Build Version: \$TIMESTAMP (\$HUMANTIMESTAMP)" >> /etc/motd
+
+	# make sure all unused VTs show the new /etc/issue
+	ps -C getty --no-header | awk '{ print \$1 }' | xargs -n 1 kill -1
 ) &
 SHOWSYSCONF
 

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