From b4354e195d0683f48b00406cfd7241cfda12b02c Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 7 Jul 2023 22:19:58 +0200 Subject: [PATCH] show MOTD on ttyd if setup is not running --- usr/share/archboot/remote/usr/bin/ttyd.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/share/archboot/remote/usr/bin/ttyd.sh b/usr/share/archboot/remote/usr/bin/ttyd.sh index 2ce84f415..1e4faca9c 100755 --- a/usr/share/archboot/remote/usr/bin/ttyd.sh +++ b/usr/share/archboot/remote/usr/bin/ttyd.sh @@ -3,11 +3,10 @@ # Created by Tobias Powalowski # simulate login from tty -if ! [[ -e /tmp/.ttyd ]]; then +if ! [[ -e /tmp/.setup-running ]]; then cat /etc/motd echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login." read -r - : >/tmp/.ttyd fi . /etc/profile screen -q -R