[X2Go-Commits] [live-build-x2go] 101/167: test: use motd instead of issue.net

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 3b5fab2e0e31757f064a8a653c6dad997f691bbb
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Wed Jul 26 10:40:47 2017 +0200

    test: use motd instead of issue.net
---
 config/includes.chroot/lib/live/config/2100-show-sysconf | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2100-show-sysconf b/config/includes.chroot/lib/live/config/2100-show-sysconf
index 3962c9b..70dcae3 100755
--- a/config/includes.chroot/lib/live/config/2100-show-sysconf
+++ b/config/includes.chroot/lib/live/config/2100-show-sysconf
@@ -29,10 +29,11 @@ fi
 
 	# clear old entries
 	sed -i '/^- /d' /etc/issue
-	sed -i '/^- /d' /etc/issue.net
+	#sed -i '/^- /d' /etc/issue.net
+	#sed -i '/^- /d' /etc/motd
 
-	# enable banner in sshd config if it was disabled
-	sed -i 's/^#Banner/Banner/' /etc/ssh/sshd_config
+	## enable banner in sshd config if it was disabled
+	#sed -i 's/^#Banner/Banner/' /etc/ssh/sshd_config
 
 	while ! [ -c /dev/tty8 ] ; do
 		echo -en "\n\$(date +'%F | %T | ')'\$0' is waiting for tty8 to become available."
@@ -57,6 +58,9 @@ fi
 	echo "\$IPMSG" | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g" >> /etc/issue.net
 	[ -n "\$BOOTEDENV" ] && echo "- Booted Environment: \$BOOTEDENV" >> /etc/issue.net
 	[ -n "\$TIMESTAMP" ] && echo "- Build Version: \$TIMESTAMP (\$HUMANTIMESTAMP)" >> /etc/issue.net
+	echo "\$IPMSG" >> /etc/motd
+	[ -n "\$BOOTEDENV" ] && echo "- Booted Environment: \$BOOTEDENV" >> /etc/motd
+	[ -n "\$TIMESTAMP" ] && echo "- Build Version: \$TIMESTAMP (\$HUMANTIMESTAMP)" >> /etc/motd
 ) &
 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