mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
same layout on ssh and ttyd login
This commit is contained in:
parent
17a4c97587
commit
c030d1793d
1 changed files with 5 additions and 1 deletions
|
@ -4,8 +4,12 @@
|
|||
|
||||
# simulate login from tty on first screen session
|
||||
if ! screen -ls &>/dev/null; then
|
||||
[[ -z "${SSH_TTY}" ]] && cat /etc/motd
|
||||
clear
|
||||
echo -e "\e[1mLogin on ttyd | $(uname -m) | $(uname -r) | $(date)\e[m"
|
||||
echo ""
|
||||
cat /etc/motd
|
||||
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login."
|
||||
echo ""
|
||||
read -r
|
||||
fi
|
||||
# define /bin/bash, else /bin/sh is the screen default
|
||||
|
|
Loading…
Reference in a new issue