mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
only show MOTD once on ssh login
This commit is contained in:
parent
01e87254e8
commit
05b48f5f97
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
# simulate login from tty on first screen session
|
||||
if ! screen -ls &>/dev/null; then
|
||||
cat /etc/motd
|
||||
[[ -z "${SSH_TTY}" ]] && cat /etc/motd
|
||||
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login."
|
||||
read -r
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue