Compare commits

...

2 commits

Author SHA1 Message Date
Tobias Powalowski
eca0d6ff1d update MOTD 2023-07-07 23:01:01 +02:00
Tobias Powalowski
b4354e195d show MOTD on ttyd if setup is not running 2023-07-07 22:19:58 +02:00
2 changed files with 2 additions and 3 deletions

View file

@ -32,7 +32,7 @@ if echo "${HOOKS[@]}" | grep -qw archboot_installer; then
echo -e " - Use the \e[1;92m'update'\e[m script." >> "${MOTD}"
#shellcheck disable=SC2129
echo -e "\e[1mInstallation Or Installation For Experts:\e[m" >> "${MOTD}"
echo -e " - Use the \e[92m'setup'\e[m or \e[1;92m'quickinst'\e[m script." >> "${MOTD}"
echo -e " - Use the \e[1;92m'setup'\e[m or \e[1;92m'quickinst'\e[m script." >> "${MOTD}"
fi
chmod 644 "${MOTD}"
add_file "${MOTD}" "/etc/motd"

View file

@ -3,11 +3,10 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# 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