add ttyd support

This commit is contained in:
Tobias Powalowski 2023-07-07 10:44:11 +02:00
parent 0cb9db8072
commit 3609a59f7a

View file

@ -3,10 +3,10 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# simulate login from tty
if ! [[ /tmp/.ttyd ]]; then
if ! [[ -e /tmp/.ttyd ]]; then
cat /etc/motd
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login."
read
read -r
: >/tmp.ttyd
fi
screen -q -R